本文整理汇总了C++中aws::String::c_str方法的典型用法代码示例。如果您正苦于以下问题:C++ String::c_str方法的具体用法?C++ String::c_str怎么用?C++ String::c_str使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类aws::String
的用法示例。
在下文中一共展示了String::c_str方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: GetArtifactPackagingForName
ArtifactPackaging GetArtifactPackagingForName(const Aws::String& name)
{
int hashCode = HashingUtils::HashString(name.c_str());
if (hashCode == NONE_HASH)
{
return ArtifactPackaging::NONE;
}
else if (hashCode == ZIP_HASH)
{
return ArtifactPackaging::ZIP;
}
EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer();
if(overflowContainer)
{
overflowContainer->StoreOverflow(hashCode, name);
return static_cast<ArtifactPackaging>(hashCode);
}
return ArtifactPackaging::NOT_SET;
}
示例2: GetOwnerForName
Owner GetOwnerForName(const Aws::String& name)
{
int hashCode = HashingUtils::HashString(name.c_str());
if (hashCode == CUSTOM_LAMBDA_HASH)
{
return Owner::CUSTOM_LAMBDA;
}
else if (hashCode == AWS_HASH)
{
return Owner::AWS;
}
EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer();
if(overflowContainer)
{
overflowContainer->StoreOverflow(hashCode, name);
return static_cast<Owner>(hashCode);
}
return Owner::NOT_SET;
}
示例3: GetSortOrderForName
SortOrder GetSortOrderForName(const Aws::String& name)
{
int hashCode = HashingUtils::HashString(name.c_str());
if (hashCode == asc_HASH)
{
return SortOrder::asc;
}
else if (hashCode == dsc_HASH)
{
return SortOrder::dsc;
}
EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer();
if(overflowContainer)
{
overflowContainer->StoreOverflow(hashCode, name);
return static_cast<SortOrder>(hashCode);
}
return SortOrder::NOT_SET;
}
示例4: GetExpirationStatusForName
ExpirationStatus GetExpirationStatusForName(const Aws::String& name)
{
int hashCode = HashingUtils::HashString(name.c_str());
if (hashCode == Enabled_HASH)
{
return ExpirationStatus::Enabled;
}
else if (hashCode == Disabled_HASH)
{
return ExpirationStatus::Disabled;
}
EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer();
if(overflowContainer)
{
overflowContainer->StoreOverflow(hashCode, name);
return static_cast<ExpirationStatus>(hashCode);
}
return ExpirationStatus::NOT_SET;
}
示例5: GetOrderEnumForName
OrderEnum GetOrderEnumForName(const Aws::String& name)
{
int hashCode = HashingUtils::HashString(name.c_str());
if (hashCode == ascending_HASH)
{
return OrderEnum::ascending;
}
else if (hashCode == descending_HASH)
{
return OrderEnum::descending;
}
EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer();
if(overflowContainer)
{
overflowContainer->StoreOverflow(hashCode, name);
return static_cast<OrderEnum>(hashCode);
}
return OrderEnum::NOT_SET;
}
示例6: GetContentHandlingStrategyForName
ContentHandlingStrategy GetContentHandlingStrategyForName(const Aws::String& name)
{
int hashCode = HashingUtils::HashString(name.c_str());
if (hashCode == CONVERT_TO_BINARY_HASH)
{
return ContentHandlingStrategy::CONVERT_TO_BINARY;
}
else if (hashCode == CONVERT_TO_TEXT_HASH)
{
return ContentHandlingStrategy::CONVERT_TO_TEXT;
}
EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer();
if(overflowContainer)
{
overflowContainer->StoreOverflow(hashCode, name);
return static_cast<ContentHandlingStrategy>(hashCode);
}
return ContentHandlingStrategy::NOT_SET;
}
示例7: GetRootDeviceTypeForName
RootDeviceType GetRootDeviceTypeForName(const Aws::String& name)
{
int hashCode = HashingUtils::HashString(name.c_str());
if (hashCode == ebs_HASH)
{
return RootDeviceType::ebs;
}
else if (hashCode == instance_store_HASH)
{
return RootDeviceType::instance_store;
}
EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer();
if(overflowContainer)
{
overflowContainer->StoreOverflow(hashCode, name);
return static_cast<RootDeviceType>(hashCode);
}
return RootDeviceType::NOT_SET;
}
示例8: GetTagResourceTypeForName
TagResourceType GetTagResourceTypeForName(const Aws::String& name)
{
int hashCode = HashingUtils::HashString(name.c_str());
if (hashCode == healthcheck_HASH)
{
return TagResourceType::healthcheck;
}
else if (hashCode == hostedzone_HASH)
{
return TagResourceType::hostedzone;
}
EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer();
if(overflowContainer)
{
overflowContainer->StoreOverflow(hashCode, name);
return static_cast<TagResourceType>(hashCode);
}
return TagResourceType::NOT_SET;
}
示例9: GetMarketTypeForName
MarketType GetMarketTypeForName(const Aws::String& name)
{
int hashCode = HashingUtils::HashString(name.c_str());
if (hashCode == ON_DEMAND_HASH)
{
return MarketType::ON_DEMAND;
}
else if (hashCode == SPOT_HASH)
{
return MarketType::SPOT;
}
EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer();
if(overflowContainer)
{
overflowContainer->StoreOverflow(hashCode, name);
return static_cast<MarketType>(hashCode);
}
return MarketType::NOT_SET;
}
示例10: GetLogTypeForName
LogType GetLogTypeForName(const Aws::String& name)
{
int hashCode = HashingUtils::HashString(name.c_str());
if (hashCode == None_HASH)
{
return LogType::None;
}
else if (hashCode == Tail_HASH)
{
return LogType::Tail;
}
EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer();
if(overflowContainer)
{
overflowContainer->StoreOverflow(hashCode, name);
return static_cast<LogType>(hashCode);
}
return LogType::NOT_SET;
}
示例11: GetKeyTypeForName
KeyType GetKeyTypeForName(const Aws::String& name)
{
int hashCode = HashingUtils::HashString(name.c_str());
if (hashCode == HASH_HASH)
{
return KeyType::HASH;
}
else if (hashCode == RANGE_HASH)
{
return KeyType::RANGE;
}
EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer();
if(overflowContainer)
{
overflowContainer->StoreOverflow(hashCode, name);
return static_cast<KeyType>(hashCode);
}
return KeyType::NOT_SET;
}
示例12: GetAccessDirectionForName
AccessDirection GetAccessDirectionForName(const Aws::String& name)
{
int hashCode = HashingUtils::HashString(name.c_str());
if (hashCode == inbound_HASH)
{
return AccessDirection::inbound;
}
else if (hashCode == outbound_HASH)
{
return AccessDirection::outbound;
}
EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer();
if(overflowContainer)
{
overflowContainer->StoreOverflow(hashCode, name);
return static_cast<AccessDirection>(hashCode);
}
return AccessDirection::NOT_SET;
}
示例13: GetResourceRecordSetFailoverForName
ResourceRecordSetFailover GetResourceRecordSetFailoverForName(const Aws::String& name)
{
int hashCode = HashingUtils::HashString(name.c_str());
if (hashCode == PRIMARY_HASH)
{
return ResourceRecordSetFailover::PRIMARY;
}
else if (hashCode == SECONDARY_HASH)
{
return ResourceRecordSetFailover::SECONDARY;
}
EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer();
if(overflowContainer)
{
overflowContainer->StoreOverflow(hashCode, name);
return static_cast<ResourceRecordSetFailover>(hashCode);
}
return ResourceRecordSetFailover::NOT_SET;
}
示例14: GetTlsPolicyForName
TlsPolicy GetTlsPolicyForName(const Aws::String& name)
{
int hashCode = HashingUtils::HashString(name.c_str());
if (hashCode == Require_HASH)
{
return TlsPolicy::Require;
}
else if (hashCode == Optional_HASH)
{
return TlsPolicy::Optional;
}
EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer();
if(overflowContainer)
{
overflowContainer->StoreOverflow(hashCode, name);
return static_cast<TlsPolicy>(hashCode);
}
return TlsPolicy::NOT_SET;
}
示例15: if
ConfigRuleComplianceSummaryGroupKey GetConfigRuleComplianceSummaryGroupKeyForName(const Aws::String& name)
{
int hashCode = HashingUtils::HashString(name.c_str());
if (hashCode == ACCOUNT_ID_HASH)
{
return ConfigRuleComplianceSummaryGroupKey::ACCOUNT_ID;
}
else if (hashCode == AWS_REGION_HASH)
{
return ConfigRuleComplianceSummaryGroupKey::AWS_REGION;
}
EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer();
if(overflowContainer)
{
overflowContainer->StoreOverflow(hashCode, name);
return static_cast<ConfigRuleComplianceSummaryGroupKey>(hashCode);
}
return ConfigRuleComplianceSummaryGroupKey::NOT_SET;
}