• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

C++ aws::String类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C++中aws::String的典型用法代码示例。如果您正苦于以下问题:C++ String类的具体用法?C++ String怎么用?C++ String使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



在下文中一共展示了String类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。

示例1: GetBundleTaskStateForName

        BundleTaskState GetBundleTaskStateForName(const Aws::String& name)
        {
          int hashCode = HashingUtils::HashString(name.c_str());
          if (hashCode == pending_HASH)
          {
            return BundleTaskState::pending;
          }
          else if (hashCode == waiting_for_shutdown_HASH)
          {
            return BundleTaskState::waiting_for_shutdown;
          }
          else if (hashCode == bundling_HASH)
          {
            return BundleTaskState::bundling;
          }
          else if (hashCode == storing_HASH)
          {
            return BundleTaskState::storing;
          }
          else if (hashCode == cancelling_HASH)
          {
            return BundleTaskState::cancelling;
          }
          else if (hashCode == complete_HASH)
          {
            return BundleTaskState::complete;
          }
          else if (hashCode == failed_HASH)
          {
            return BundleTaskState::failed;
          }
          EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer();
          if(overflowContainer)
          {
            overflowContainer->StoreOverflow(hashCode, name);
            return static_cast<BundleTaskState>(hashCode);
          }

          return BundleTaskState::NOT_SET;
        }
开发者ID:Fahrenheit2539,项目名称:aws-sdk-cpp,代码行数:40,代码来源:BundleTaskState.cpp


示例2: GetMethodForName

        Method GetMethodForName(const Aws::String& name)
        {
          int hashCode = HashingUtils::HashString(name.c_str());
          if (hashCode == GET__HASH)
          {
            return Method::GET_;
          }
          else if (hashCode == HEAD_HASH)
          {
            return Method::HEAD;
          }
          else if (hashCode == POST_HASH)
          {
            return Method::POST;
          }
          else if (hashCode == PUT_HASH)
          {
            return Method::PUT;
          }
          else if (hashCode == PATCH_HASH)
          {
            return Method::PATCH;
          }
          else if (hashCode == OPTIONS_HASH)
          {
            return Method::OPTIONS;
          }
          else if (hashCode == DELETE__HASH)
          {
            return Method::DELETE_;
          }
          EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer();
          if(overflowContainer)
          {
            overflowContainer->StoreOverflow(hashCode, name);
            return static_cast<Method>(hashCode);
          }

          return Method::NOT_SET;
        }
开发者ID:capeanalytics,项目名称:aws-sdk-cpp,代码行数:40,代码来源:Method.cpp


示例3: GetImageStateForName

        ImageState GetImageStateForName(const Aws::String& name)
        {
          int hashCode = HashingUtils::HashString(name.c_str());
          if (hashCode == pending_HASH)
          {
            return ImageState::pending;
          }
          else if (hashCode == available_HASH)
          {
            return ImageState::available;
          }
          else if (hashCode == invalid_HASH)
          {
            return ImageState::invalid;
          }
          else if (hashCode == deregistered_HASH)
          {
            return ImageState::deregistered;
          }
          else if (hashCode == transient_HASH)
          {
            return ImageState::transient;
          }
          else if (hashCode == failed_HASH)
          {
            return ImageState::failed;
          }
          else if (hashCode == error_HASH)
          {
            return ImageState::error;
          }
          EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer();
          if(overflowContainer)
          {
            overflowContainer->StoreOverflow(hashCode, name);
            return static_cast<ImageState>(hashCode);
          }

          return ImageState::NOT_SET;
        }
开发者ID:Fahrenheit2539,项目名称:aws-sdk-cpp,代码行数:40,代码来源:ImageState.cpp


示例4: GetPolicySourceTypeForName

PolicySourceType GetPolicySourceTypeForName(const Aws::String& name)
{
    int hashCode = HashingUtils::HashString(name.c_str());
    if (hashCode == user_HASH)
    {
        return PolicySourceType::user;
    }
    else if (hashCode == group_HASH)
    {
        return PolicySourceType::group;
    }
    else if (hashCode == role_HASH)
    {
        return PolicySourceType::role;
    }
    else if (hashCode == aws_managed_HASH)
    {
        return PolicySourceType::aws_managed;
    }
    else if (hashCode == user_managed_HASH)
    {
        return PolicySourceType::user_managed;
    }
    else if (hashCode == resource_HASH)
    {
        return PolicySourceType::resource;
    }
    else if (hashCode == none_HASH)
    {
        return PolicySourceType::none;
    }
    EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer();
    if(overflowContainer)
    {
        overflowContainer->StoreOverflow(hashCode, name);
        return static_cast<PolicySourceType>(hashCode);
    }

    return PolicySourceType::NOT_SET;
}
开发者ID:yamashi,项目名称:aws-sdk-cpp,代码行数:40,代码来源:PolicySourceType.cpp


示例5: GetCertificateStatusForName

        CertificateStatus GetCertificateStatusForName(const Aws::String& name)
        {
          int hashCode = HashingUtils::HashString(name.c_str());
          if (hashCode == PENDING_VALIDATION_HASH)
          {
            return CertificateStatus::PENDING_VALIDATION;
          }
          else if (hashCode == ISSUED_HASH)
          {
            return CertificateStatus::ISSUED;
          }
          else if (hashCode == INACTIVE_HASH)
          {
            return CertificateStatus::INACTIVE;
          }
          else if (hashCode == EXPIRED_HASH)
          {
            return CertificateStatus::EXPIRED;
          }
          else if (hashCode == VALIDATION_TIMED_OUT_HASH)
          {
            return CertificateStatus::VALIDATION_TIMED_OUT;
          }
          else if (hashCode == REVOKED_HASH)
          {
            return CertificateStatus::REVOKED;
          }
          else if (hashCode == FAILED_HASH)
          {
            return CertificateStatus::FAILED;
          }
          EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer();
          if(overflowContainer)
          {
            overflowContainer->StoreOverflow(hashCode, name);
            return static_cast<CertificateStatus>(hashCode);
          }

          return CertificateStatus::NOT_SET;
        }
开发者ID:capeanalytics,项目名称:aws-sdk-cpp,代码行数:40,代码来源:CertificateStatus.cpp


示例6: GetJobStatusForName

        JobStatus GetJobStatusForName(const Aws::String& name)
        {
          int hashCode = HashingUtils::HashString(name.c_str());
          if (hashCode == Created_HASH)
          {
            return JobStatus::Created;
          }
          else if (hashCode == Queued_HASH)
          {
            return JobStatus::Queued;
          }
          else if (hashCode == Dispatched_HASH)
          {
            return JobStatus::Dispatched;
          }
          else if (hashCode == InProgress_HASH)
          {
            return JobStatus::InProgress;
          }
          else if (hashCode == TimedOut_HASH)
          {
            return JobStatus::TimedOut;
          }
          else if (hashCode == Succeeded_HASH)
          {
            return JobStatus::Succeeded;
          }
          else if (hashCode == Failed_HASH)
          {
            return JobStatus::Failed;
          }
          EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer();
          if(overflowContainer)
          {
            overflowContainer->StoreOverflow(hashCode, name);
            return static_cast<JobStatus>(hashCode);
          }

          return JobStatus::NOT_SET;
        }
开发者ID:Bu11etmagnet,项目名称:aws-sdk-cpp,代码行数:40,代码来源:JobStatus.cpp


示例7: GetAppTypeForName

        AppType GetAppTypeForName(const Aws::String& name)
        {
          int hashCode = HashingUtils::HashString(name.c_str());
          if (hashCode == aws_flow_ruby_HASH)
          {
            return AppType::aws_flow_ruby;
          }
          else if (hashCode == java_HASH)
          {
            return AppType::java;
          }
          else if (hashCode == rails_HASH)
          {
            return AppType::rails;
          }
          else if (hashCode == php_HASH)
          {
            return AppType::php;
          }
          else if (hashCode == nodejs_HASH)
          {
            return AppType::nodejs;
          }
          else if (hashCode == static__HASH)
          {
            return AppType::static_;
          }
          else if (hashCode == other_HASH)
          {
            return AppType::other;
          }
          EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer();
          if(overflowContainer)
          {
            overflowContainer->StoreOverflow(hashCode, name);
            return static_cast<AppType>(hashCode);
          }

          return AppType::NOT_SET;
        }
开发者ID:Fahrenheit2539,项目名称:aws-sdk-cpp,代码行数:40,代码来源:AppType.cpp


示例8: GetFleetStateCodeForName

        FleetStateCode GetFleetStateCodeForName(const Aws::String& name)
        {
          int hashCode = HashingUtils::HashString(name.c_str());
          if (hashCode == submitted_HASH)
          {
            return FleetStateCode::submitted;
          }
          else if (hashCode == active_HASH)
          {
            return FleetStateCode::active;
          }
          else if (hashCode == deleted_HASH)
          {
            return FleetStateCode::deleted;
          }
          else if (hashCode == failed_HASH)
          {
            return FleetStateCode::failed;
          }
          else if (hashCode == deleted_running_HASH)
          {
            return FleetStateCode::deleted_running;
          }
          else if (hashCode == deleted_terminating_HASH)
          {
            return FleetStateCode::deleted_terminating;
          }
          else if (hashCode == modifying_HASH)
          {
            return FleetStateCode::modifying;
          }
          EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer();
          if(overflowContainer)
          {
            overflowContainer->StoreOverflow(hashCode, name);
            return static_cast<FleetStateCode>(hashCode);
          }

          return FleetStateCode::NOT_SET;
        }
开发者ID:marcomagdy,项目名称:aws-sdk-cpp,代码行数:40,代码来源:FleetStateCode.cpp


示例9: GetStepExecutionStateForName

        StepExecutionState GetStepExecutionStateForName(const Aws::String& name)
        {
          int hashCode = HashingUtils::HashString(name.c_str());
          if (hashCode == PENDING_HASH)
          {
            return StepExecutionState::PENDING;
          }
          else if (hashCode == RUNNING_HASH)
          {
            return StepExecutionState::RUNNING;
          }
          else if (hashCode == CONTINUE_HASH)
          {
            return StepExecutionState::CONTINUE;
          }
          else if (hashCode == COMPLETED_HASH)
          {
            return StepExecutionState::COMPLETED;
          }
          else if (hashCode == CANCELLED_HASH)
          {
            return StepExecutionState::CANCELLED;
          }
          else if (hashCode == FAILED_HASH)
          {
            return StepExecutionState::FAILED;
          }
          else if (hashCode == INTERRUPTED_HASH)
          {
            return StepExecutionState::INTERRUPTED;
          }
          EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer();
          if(overflowContainer)
          {
            overflowContainer->StoreOverflow(hashCode, name);
            return static_cast<StepExecutionState>(hashCode);
          }

          return StepExecutionState::NOT_SET;
        }
开发者ID:Fahrenheit2539,项目名称:aws-sdk-cpp,代码行数:40,代码来源:StepExecutionState.cpp


示例10: GetClusterStateForName

ClusterState GetClusterStateForName(const Aws::String& name)
{
    int hashCode = HashingUtils::HashString(name.c_str());
    if (hashCode == STARTING_HASH)
    {
        return ClusterState::STARTING;
    }
    else if (hashCode == BOOTSTRAPPING_HASH)
    {
        return ClusterState::BOOTSTRAPPING;
    }
    else if (hashCode == RUNNING_HASH)
    {
        return ClusterState::RUNNING;
    }
    else if (hashCode == WAITING_HASH)
    {
        return ClusterState::WAITING;
    }
    else if (hashCode == TERMINATING_HASH)
    {
        return ClusterState::TERMINATING;
    }
    else if (hashCode == TERMINATED_HASH)
    {
        return ClusterState::TERMINATED;
    }
    else if (hashCode == TERMINATED_WITH_ERRORS_HASH)
    {
        return ClusterState::TERMINATED_WITH_ERRORS;
    }
    EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer();
    if(overflowContainer)
    {
        overflowContainer->StoreOverflow(hashCode, name);
        return static_cast<ClusterState>(hashCode);
    }

    return ClusterState::NOT_SET;
}
开发者ID:gedikli,项目名称:aws-sdk-cpp,代码行数:40,代码来源:ClusterState.cpp


示例11: GetJobFlowExecutionStateForName

JobFlowExecutionState GetJobFlowExecutionStateForName(const Aws::String& name)
{
  int hashCode = HashingUtils::HashString(name.c_str());

  if (hashCode == STARTING_HASH)
  {
    return JobFlowExecutionState::STARTING;
  }
  else if (hashCode == BOOTSTRAPPING_HASH)
  {
    return JobFlowExecutionState::BOOTSTRAPPING;
  }
  else if (hashCode == RUNNING_HASH)
  {
    return JobFlowExecutionState::RUNNING;
  }
  else if (hashCode == WAITING_HASH)
  {
    return JobFlowExecutionState::WAITING;
  }
  else if (hashCode == SHUTTING_DOWN_HASH)
  {
    return JobFlowExecutionState::SHUTTING_DOWN;
  }
  else if (hashCode == TERMINATED_HASH)
  {
    return JobFlowExecutionState::TERMINATED;
  }
  else if (hashCode == COMPLETED_HASH)
  {
    return JobFlowExecutionState::COMPLETED;
  }
  else if (hashCode == FAILED_HASH)
  {
    return JobFlowExecutionState::FAILED;
  }

  return JobFlowExecutionState::NOT_SET;
}
开发者ID:wrtcoder,项目名称:aws-sdk-cpp,代码行数:39,代码来源:JobFlowExecutionState.cpp


示例12: GetInstanceGroupStateChangeReasonCodeForName

InstanceGroupStateChangeReasonCode GetInstanceGroupStateChangeReasonCodeForName(const Aws::String& name)
{
  int hashCode = HashingUtils::HashString(name.c_str());

  if (hashCode == INTERNAL_ERROR_HASH)
  {
    return InstanceGroupStateChangeReasonCode::INTERNAL_ERROR;
  }
  else if (hashCode == VALIDATION_ERROR_HASH)
  {
    return InstanceGroupStateChangeReasonCode::VALIDATION_ERROR;
  }
  else if (hashCode == INSTANCE_FAILURE_HASH)
  {
    return InstanceGroupStateChangeReasonCode::INSTANCE_FAILURE;
  }
  else if (hashCode == CLUSTER_TERMINATED_HASH)
  {
    return InstanceGroupStateChangeReasonCode::CLUSTER_TERMINATED;
  }

  return InstanceGroupStateChangeReasonCode::NOT_SET;
}
开发者ID:wrtcoder,项目名称:aws-sdk-cpp,代码行数:23,代码来源:InstanceGroupStateChangeReasonCode.cpp


示例13: GetStateForName

State GetStateForName(const Aws::String& name)
{
  int hashCode = HashingUtils::HashString(name.c_str());

  if (hashCode == Pending_HASH)
  {
    return State::Pending;
  }
  else if (hashCode == Available_HASH)
  {
    return State::Available;
  }
  else if (hashCode == Deleting_HASH)
  {
    return State::Deleting;
  }
  else if (hashCode == Deleted_HASH)
  {
    return State::Deleted;
  }

  return State::NOT_SET;
}
开发者ID:wrtcoder,项目名称:aws-sdk-cpp,代码行数:23,代码来源:State.cpp


示例14: GetReplicationStatusForName

ReplicationStatus GetReplicationStatusForName(const Aws::String& name)
{
  int hashCode = HashingUtils::HashString(name.c_str());

  if (hashCode == COMPLETE_HASH)
  {
    return ReplicationStatus::COMPLETE;
  }
  else if (hashCode == PENDING_HASH)
  {
    return ReplicationStatus::PENDING;
  }
  else if (hashCode == FAILED_HASH)
  {
    return ReplicationStatus::FAILED;
  }
  else if (hashCode == REPLICA_HASH)
  {
    return ReplicationStatus::REPLICA;
  }

  return ReplicationStatus::NOT_SET;
}
开发者ID:wrtcoder,项目名称:aws-sdk-cpp,代码行数:23,代码来源:ReplicationStatus.cpp


示例15: GetPlatformForName

Platform GetPlatformForName(const Aws::String& name)
{
  int hashCode = HashingUtils::HashString(name.c_str());

  if (hashCode == APNS_HASH)
  {
    return Platform::APNS;
  }
  else if (hashCode == APNS_SANDBOX_HASH)
  {
    return Platform::APNS_SANDBOX;
  }
  else if (hashCode == GCM_HASH)
  {
    return Platform::GCM;
  }
  else if (hashCode == ADM_HASH)
  {
    return Platform::ADM;
  }

  return Platform::NOT_SET;
}
开发者ID:wrtcoder,项目名称:aws-sdk-cpp,代码行数:23,代码来源:Platform.cpp


示例16: GetStreamStatusForName

StreamStatus GetStreamStatusForName(const Aws::String& name)
{
  int hashCode = HashingUtils::HashString(name.c_str());

  if (hashCode == CREATING_HASH)
  {
    return StreamStatus::CREATING;
  }
  else if (hashCode == DELETING_HASH)
  {
    return StreamStatus::DELETING;
  }
  else if (hashCode == ACTIVE_HASH)
  {
    return StreamStatus::ACTIVE;
  }
  else if (hashCode == UPDATING_HASH)
  {
    return StreamStatus::UPDATING;
  }

  return StreamStatus::NOT_SET;
}
开发者ID:wrtcoder,项目名称:aws-sdk-cpp,代码行数:23,代码来源:StreamStatus.cpp


示例17: GetStatusTypeForName

StatusType GetStatusTypeForName(const Aws::String& name)
{
  int hashCode = HashingUtils::HashString(name.c_str());

  if (hashCode == passed_HASH)
  {
    return StatusType::passed;
  }
  else if (hashCode == failed_HASH)
  {
    return StatusType::failed;
  }
  else if (hashCode == insufficient_data_HASH)
  {
    return StatusType::insufficient_data;
  }
  else if (hashCode == initializing_HASH)
  {
    return StatusType::initializing;
  }

  return StatusType::NOT_SET;
}
开发者ID:wrtcoder,项目名称:aws-sdk-cpp,代码行数:23,代码来源:StatusType.cpp


示例18: GetVolumeAttachmentStateForName

VolumeAttachmentState GetVolumeAttachmentStateForName(const Aws::String& name)
{
  int hashCode = HashingUtils::HashString(name.c_str());

  if (hashCode == attaching_HASH)
  {
    return VolumeAttachmentState::attaching;
  }
  else if (hashCode == attached_HASH)
  {
    return VolumeAttachmentState::attached;
  }
  else if (hashCode == detaching_HASH)
  {
    return VolumeAttachmentState::detaching;
  }
  else if (hashCode == detached_HASH)
  {
    return VolumeAttachmentState::detached;
  }

  return VolumeAttachmentState::NOT_SET;
}
开发者ID:wrtcoder,项目名称:aws-sdk-cpp,代码行数:23,代码来源:VolumeAttachmentState.cpp


示例19: GetSourceTypeForName

SourceType GetSourceTypeForName(const Aws::String& name)
{
  int hashCode = HashingUtils::HashString(name.c_str());

  if (hashCode == cluster_HASH)
  {
    return SourceType::cluster;
  }
  else if (hashCode == cluster_parameter_group_HASH)
  {
    return SourceType::cluster_parameter_group;
  }
  else if (hashCode == cluster_security_group_HASH)
  {
    return SourceType::cluster_security_group;
  }
  else if (hashCode == cluster_snapshot_HASH)
  {
    return SourceType::cluster_snapshot;
  }

  return SourceType::NOT_SET;
}
开发者ID:wrtcoder,项目名称:aws-sdk-cpp,代码行数:23,代码来源:SourceType.cpp


示例20: GetAppAttributesKeysForName

AppAttributesKeys GetAppAttributesKeysForName(const Aws::String& name)
{
  int hashCode = HashingUtils::HashString(name.c_str());

  if (hashCode == DocumentRoot_HASH)
  {
    return AppAttributesKeys::DocumentRoot;
  }
  else if (hashCode == RailsEnv_HASH)
  {
    return AppAttributesKeys::RailsEnv;
  }
  else if (hashCode == AutoBundleOnDeploy_HASH)
  {
    return AppAttributesKeys::AutoBundleOnDeploy;
  }
  else if (hashCode == AwsFlowRubySettings_HASH)
  {
    return AppAttributesKeys::AwsFlowRubySettings;
  }

  return AppAttributesKeys::NOT_SET;
}
开发者ID:wrtcoder,项目名称:aws-sdk-cpp,代码行数:23,代码来源:AppAttributesKeys.cpp



注:本文中的aws::String类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C++ aws::StringStream类代码示例发布时间:2022-05-31
下一篇:
C++ avatarhash::iterator类代码示例发布时间:2022-05-31
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap