本文整理汇总了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());
}
}
示例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());
}
}
示例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());
}
}
示例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());
}
}
示例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());
}
}
示例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());
}
}
示例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());
}
}
示例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());
}
}
示例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());
}
}
示例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());
}
}
示例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());
}
}
示例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());
}
}
示例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());
}
}