This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
pxz-hos-client-cpp-module/support/aws-sdk-cpp-master/aws-cpp-sdk-elasticbeanstalk/source/model/InstancesHealthAttribute.cpp

134 lines
4.7 KiB
C++
Raw Normal View History

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/elasticbeanstalk/model/InstancesHealthAttribute.h>
#include <aws/core/utils/HashingUtils.h>
#include <aws/core/Globals.h>
#include <aws/core/utils/EnumParseOverflowContainer.h>
using namespace Aws::Utils;
namespace Aws
{
namespace ElasticBeanstalk
{
namespace Model
{
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");
InstancesHealthAttribute GetInstancesHealthAttributeForName(const Aws::String& name)
{
int hashCode = HashingUtils::HashString(name.c_str());
if (hashCode == HealthStatus_HASH)
{
return InstancesHealthAttribute::HealthStatus;
}
else if (hashCode == Color_HASH)
{
return InstancesHealthAttribute::Color;
}
else if (hashCode == Causes_HASH)
{
return InstancesHealthAttribute::Causes;
}
else if (hashCode == ApplicationMetrics_HASH)
{
return InstancesHealthAttribute::ApplicationMetrics;
}
else if (hashCode == RefreshedAt_HASH)
{
return InstancesHealthAttribute::RefreshedAt;
}
else if (hashCode == LaunchedAt_HASH)
{
return InstancesHealthAttribute::LaunchedAt;
}
else if (hashCode == System_HASH)
{
return InstancesHealthAttribute::System;
}
else if (hashCode == Deployment_HASH)
{
return InstancesHealthAttribute::Deployment;
}
else if (hashCode == AvailabilityZone_HASH)
{
return InstancesHealthAttribute::AvailabilityZone;
}
else if (hashCode == InstanceType_HASH)
{
return InstancesHealthAttribute::InstanceType;
}
else if (hashCode == All_HASH)
{
return InstancesHealthAttribute::All;
}
EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer();
if(overflowContainer)
{
overflowContainer->StoreOverflow(hashCode, name);
return static_cast<InstancesHealthAttribute>(hashCode);
}
return InstancesHealthAttribute::NOT_SET;
}
Aws::String GetNameForInstancesHealthAttribute(InstancesHealthAttribute enumValue)
{
switch(enumValue)
{
case InstancesHealthAttribute::HealthStatus:
return "HealthStatus";
case InstancesHealthAttribute::Color:
return "Color";
case InstancesHealthAttribute::Causes:
return "Causes";
case InstancesHealthAttribute::ApplicationMetrics:
return "ApplicationMetrics";
case InstancesHealthAttribute::RefreshedAt:
return "RefreshedAt";
case InstancesHealthAttribute::LaunchedAt:
return "LaunchedAt";
case InstancesHealthAttribute::System:
return "System";
case InstancesHealthAttribute::Deployment:
return "Deployment";
case InstancesHealthAttribute::AvailabilityZone:
return "AvailabilityZone";
case InstancesHealthAttribute::InstanceType:
return "InstanceType";
case InstancesHealthAttribute::All:
return "All";
default:
EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer();
if(overflowContainer)
{
return overflowContainer->RetrieveOverflow(static_cast<int>(enumValue));
}
return {};
}
}
} // namespace InstancesHealthAttributeMapper
} // namespace Model
} // namespace ElasticBeanstalk
} // namespace Aws