当前位置: 首页>>代码示例>>C++>>正文


C++ JsonOutcome类代码示例

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


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

示例1: MakeRequest

DescribeTasksOutcome ECSClient::DescribeTasks(const DescribeTasksRequest& request) const
{
  Aws::StringStream ss;
  ss << m_uri << "/";

  JsonOutcome outcome = MakeRequest(ss.str(), request, HttpMethod::HTTP_POST);
  if(outcome.IsSuccess())
  {
    return DescribeTasksOutcome(DescribeTasksResult(outcome.GetResult()));
  }
  else
  {
    return DescribeTasksOutcome(outcome.GetError());
  }
}
开发者ID:emotionpromotion,项目名称:aws-sdk-cpp,代码行数:15,代码来源:ECSClient.cpp

示例2: MakeRequest

UpdateTrailOutcome CloudTrailClient::UpdateTrail(const UpdateTrailRequest& request) const
{
  Aws::StringStream ss;
  ss << m_uri << "/";

  JsonOutcome outcome = MakeRequest(ss.str(), request, HttpMethod::HTTP_POST);
  if(outcome.IsSuccess())
  {
    return UpdateTrailOutcome(UpdateTrailResult(outcome.GetResult()));
  }
  else
  {
    return UpdateTrailOutcome(outcome.GetError());
  }
}
开发者ID:Fahrenheit2539,项目名称:aws-sdk-cpp,代码行数:15,代码来源:CloudTrailClient.cpp

示例3: MakeRequest

UpdateAssociationStatusOutcome SSMClient::UpdateAssociationStatus(const UpdateAssociationStatusRequest& request) const
{
  Aws::StringStream ss;
  ss << m_uri << "/";

  JsonOutcome outcome = MakeRequest(ss.str(), request, HttpMethod::HTTP_POST);
  if(outcome.IsSuccess())
  {
    return UpdateAssociationStatusOutcome(UpdateAssociationStatusResult(outcome.GetResult()));
  }
  else
  {
    return UpdateAssociationStatusOutcome(outcome.GetError());
  }
}
开发者ID:Bu11etmagnet,项目名称:aws-sdk-cpp,代码行数:15,代码来源:SSMClient.cpp

示例4: MakeRequest

ListTargetsByRuleOutcome CloudWatchEventsClient::ListTargetsByRule(const ListTargetsByRuleRequest& request) const
{
  Aws::StringStream ss;
  ss << m_uri << "/";

  JsonOutcome outcome = MakeRequest(ss.str(), request, HttpMethod::HTTP_POST);
  if(outcome.IsSuccess())
  {
    return ListTargetsByRuleOutcome(ListTargetsByRuleResult(outcome.GetResult()));
  }
  else
  {
    return ListTargetsByRuleOutcome(outcome.GetError());
  }
}
开发者ID:emotionpromotion,项目名称:aws-sdk-cpp,代码行数:15,代码来源:CloudWatchEventsClient.cpp

示例5: MakeRequest

DescribeIdentityPoolUsageOutcome CognitoSyncClient::DescribeIdentityPoolUsage(const DescribeIdentityPoolUsageRequest& request) const
{
    Aws::StringStream ss;
    ss << m_uri << "/identitypools/";
    ss << request.GetIdentityPoolId();

    JsonOutcome outcome = MakeRequest(ss.str(), request, HttpMethod::HTTP_GET);
    if(outcome.IsSuccess())
    {
        return DescribeIdentityPoolUsageOutcome(DescribeIdentityPoolUsageResult(outcome.GetResult()));
    }
    else
    {
        return DescribeIdentityPoolUsageOutcome(outcome.GetError());
    }
}
开发者ID:rr-dev,项目名称:aws-sdk-cpp,代码行数:16,代码来源:CognitoSyncClient.cpp

示例6: MakeRequest

DeleteTagsOutcome EFSClient::DeleteTags(const DeleteTagsRequest& request) const
{
  Aws::StringStream ss;
  ss << m_uri << "/2015-02-01/delete-tags/";
  ss << request.GetFileSystemId();

  JsonOutcome outcome = MakeRequest(ss.str(), request, HttpMethod::HTTP_POST);
  if(outcome.IsSuccess())
  {
    return DeleteTagsOutcome(NoResult());
  }
  else
  {
    return DeleteTagsOutcome(outcome.GetError());
  }
}
开发者ID:ukjhsa,项目名称:aws-sdk-cpp,代码行数:16,代码来源:EFSClient.cpp

示例7: MakeRequest

GetFunctionOutcome LambdaClient::GetFunction(const GetFunctionRequest& request) const
{
  Aws::StringStream ss;
  ss << m_uri << "/2015-03-31/functions/";
  ss << request.GetFunctionName();

  JsonOutcome outcome = MakeRequest(ss.str(), request, HttpMethod::HTTP_GET);
  if(outcome.IsSuccess())
  {
    return GetFunctionOutcome(GetFunctionResult(outcome.GetResult()));
  }
  else
  {
    return GetFunctionOutcome(outcome.GetError());
  }
}
开发者ID:Bu11etmagnet,项目名称:aws-sdk-cpp,代码行数:16,代码来源:LambdaClient.cpp

示例8: MakeRequest

ReadPresetOutcome ElasticTranscoderClient::ReadPreset(const ReadPresetRequest& request) const
{
  Aws::StringStream ss;
  ss << m_uri << "/2012-09-25/presets/";
  ss << request.GetId();

  JsonOutcome outcome = MakeRequest(ss.str(), request, HttpMethod::HTTP_GET);
  if(outcome.IsSuccess())
  {
    return ReadPresetOutcome(ReadPresetResult(outcome.GetResult()));
  }
  else
  {
    return ReadPresetOutcome(outcome.GetError());
  }
}
开发者ID:Bu11etmagnet,项目名称:aws-sdk-cpp,代码行数:16,代码来源:ElasticTranscoderClient.cpp

示例9: MakeRequest

UpdateSubscriberOutcome BudgetsClient::UpdateSubscriber(const UpdateSubscriberRequest& request) const
{
  Aws::StringStream ss;
  Aws::Http::URI uri = m_uri;
  ss << "/";
 uri.SetPath(uri.GetPath() + ss.str());
  JsonOutcome outcome = MakeRequest(uri, request, HttpMethod::HTTP_POST);
  if(outcome.IsSuccess())
  {
    return UpdateSubscriberOutcome(UpdateSubscriberResult(outcome.GetResult()));
  }
  else
  {
    return UpdateSubscriberOutcome(outcome.GetError());
  }
}
开发者ID:patilarpith,项目名称:aws-sdk-cpp,代码行数:16,代码来源:BudgetsClient.cpp

示例10: MakeRequest

UpdateApplicationOutcome KinesisAnalyticsClient::UpdateApplication(const UpdateApplicationRequest& request) const
{
  Aws::StringStream ss;
  Aws::Http::URI uri = m_uri;
  ss << "/";
 uri.SetPath(uri.GetPath() + ss.str());
  JsonOutcome outcome = MakeRequest(uri, request, HttpMethod::HTTP_POST);
  if(outcome.IsSuccess())
  {
    return UpdateApplicationOutcome(UpdateApplicationResult(outcome.GetResult()));
  }
  else
  {
    return UpdateApplicationOutcome(outcome.GetError());
  }
}
开发者ID:patilarpith,项目名称:aws-sdk-cpp,代码行数:16,代码来源:KinesisAnalyticsClient.cpp

示例11: MakeRequest

DescribeElasticsearchDomainOutcome ElasticsearchServiceClient::DescribeElasticsearchDomain(const DescribeElasticsearchDomainRequest& request) const
{
  Aws::StringStream ss;
  ss << m_uri << "/2015-01-01/es/domain/";
  ss << request.GetDomainName();

  JsonOutcome outcome = MakeRequest(ss.str(), request, HttpMethod::HTTP_GET);
  if(outcome.IsSuccess())
  {
    return DescribeElasticsearchDomainOutcome(DescribeElasticsearchDomainResult(outcome.GetResult()));
  }
  else
  {
    return DescribeElasticsearchDomainOutcome(outcome.GetError());
  }
}
开发者ID:ukjhsa,项目名称:aws-sdk-cpp,代码行数:16,代码来源:ElasticsearchServiceClient.cpp

示例12: MakeRequest

CheckDomainAvailabilityOutcome Route53DomainsClient::CheckDomainAvailability(const CheckDomainAvailabilityRequest& request) const
{
  Aws::StringStream ss;
  Aws::Http::URI uri = m_uri;
  ss << "/";
 uri.SetPath(uri.GetPath() + ss.str());
  JsonOutcome outcome = MakeRequest(uri, request, HttpMethod::HTTP_POST);
  if(outcome.IsSuccess())
  {
    return CheckDomainAvailabilityOutcome(CheckDomainAvailabilityResult(outcome.GetResult()));
  }
  else
  {
    return CheckDomainAvailabilityOutcome(outcome.GetError());
  }
}
开发者ID:svagionitis,项目名称:aws-sdk-cpp,代码行数:16,代码来源:Route53DomainsClient.cpp

示例13: MakeRequest

PutEventsOutcome MobileAnalyticsClient::PutEvents(const PutEventsRequest& request) const
{
  Aws::StringStream ss;
  Aws::Http::URI uri = m_uri;
  ss << "/2014-06-05/events";
 uri.SetPath(uri.GetPath() + ss.str());
  JsonOutcome outcome = MakeRequest(uri, request, HttpMethod::HTTP_POST);
  if(outcome.IsSuccess())
  {
    return PutEventsOutcome(NoResult());
  }
  else
  {
    return PutEventsOutcome(outcome.GetError());
  }
}
开发者ID:patilarpith,项目名称:aws-sdk-cpp,代码行数:16,代码来源:MobileAnalyticsClient.cpp


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