本文整理汇总了C++中JsonValue::WithString方法的典型用法代码示例。如果您正苦于以下问题:C++ JsonValue::WithString方法的具体用法?C++ JsonValue::WithString怎么用?C++ JsonValue::WithString使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类JsonValue
的用法示例。
在下文中一共展示了JsonValue::WithString方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: Jsonize
JsonValue InventoryResultEntity::Jsonize() const
{
JsonValue payload;
if(m_idHasBeenSet)
{
payload.WithString("Id", m_id);
}
if(m_dataHasBeenSet)
{
JsonValue dataJsonMap;
for(auto& dataItem : m_data)
{
dataJsonMap.WithObject(dataItem.first, dataItem.second.Jsonize());
}
payload.WithObject("Data", std::move(dataJsonMap));
}
return payload;
}
示例2: SerializePayload
Aws::String DescribeConditionalForwardersRequest::SerializePayload() const
{
JsonValue payload;
if(m_directoryIdHasBeenSet)
{
payload.WithString("DirectoryId", m_directoryId);
}
if(m_remoteDomainNamesHasBeenSet)
{
Array<JsonValue> remoteDomainNamesJsonList(m_remoteDomainNames.size());
for(unsigned remoteDomainNamesIndex = 0; remoteDomainNamesIndex < remoteDomainNamesJsonList.GetLength(); ++remoteDomainNamesIndex)
{
remoteDomainNamesJsonList[remoteDomainNamesIndex].AsString(m_remoteDomainNames[remoteDomainNamesIndex]);
}
payload.WithArray("RemoteDomainNames", std::move(remoteDomainNamesJsonList));
}
return payload.WriteReadable();
}
示例3: SerializePayload
Aws::String DisassociateConfigurationItemsFromApplicationRequest::SerializePayload() const
{
JsonValue payload;
if(m_applicationConfigurationIdHasBeenSet)
{
payload.WithString("applicationConfigurationId", m_applicationConfigurationId);
}
if(m_configurationIdsHasBeenSet)
{
Array<JsonValue> configurationIdsJsonList(m_configurationIds.size());
for(unsigned configurationIdsIndex = 0; configurationIdsIndex < configurationIdsJsonList.GetLength(); ++configurationIdsIndex)
{
configurationIdsJsonList[configurationIdsIndex].AsString(m_configurationIds[configurationIdsIndex]);
}
payload.WithArray("configurationIds", std::move(configurationIdsJsonList));
}
return payload.View().WriteReadable();
}
开发者ID:marcomagdy,项目名称:aws-sdk-cpp,代码行数:23,代码来源:DisassociateConfigurationItemsFromApplicationRequest.cpp
示例4: Jsonize
JsonValue UniqueProblem::Jsonize() const
{
JsonValue payload;
if(m_messageHasBeenSet)
{
payload.WithString("message", m_message);
}
if(m_problemsHasBeenSet)
{
Array<JsonValue> problemsJsonList(m_problems.size());
for(unsigned problemsIndex = 0; problemsIndex < problemsJsonList.GetLength(); ++problemsIndex)
{
problemsJsonList[problemsIndex].AsObject(m_problems[problemsIndex].Jsonize());
}
payload.WithArray("problems", std::move(problemsJsonList));
}
return payload;
}
示例5: Jsonize
JsonValue Account::Jsonize() const
{
JsonValue payload;
if(m_idHasBeenSet)
{
payload.WithString("Id", m_id);
}
if(m_arnHasBeenSet)
{
payload.WithString("Arn", m_arn);
}
if(m_emailHasBeenSet)
{
payload.WithString("Email", m_email);
}
if(m_nameHasBeenSet)
{
payload.WithString("Name", m_name);
}
if(m_statusHasBeenSet)
{
payload.WithString("Status", AccountStatusMapper::GetNameForAccountStatus(m_status));
}
if(m_joinedMethodHasBeenSet)
{
payload.WithString("JoinedMethod", AccountJoinedMethodMapper::GetNameForAccountJoinedMethod(m_joinedMethod));
}
if(m_joinedTimestampHasBeenSet)
{
payload.WithDouble("JoinedTimestamp", m_joinedTimestamp.SecondsWithMSPrecision());
}
return payload;
}
示例6: Jsonize
JsonValue BatchLookupPolicyResponse::Jsonize() const
{
JsonValue payload;
if(m_policyToPathListHasBeenSet)
{
Array<JsonValue> policyToPathListJsonList(m_policyToPathList.size());
for(unsigned policyToPathListIndex = 0; policyToPathListIndex < policyToPathListJsonList.GetLength(); ++policyToPathListIndex)
{
policyToPathListJsonList[policyToPathListIndex].AsObject(m_policyToPathList[policyToPathListIndex].Jsonize());
}
payload.WithArray("PolicyToPathList", std::move(policyToPathListJsonList));
}
if(m_nextTokenHasBeenSet)
{
payload.WithString("NextToken", m_nextToken);
}
return payload;
}
示例7: Jsonize
JsonValue WorkflowExecutionCancelRequestedEventAttributes::Jsonize() const
{
JsonValue payload;
if(m_externalWorkflowExecutionHasBeenSet)
{
payload.WithObject("externalWorkflowExecution", m_externalWorkflowExecution.Jsonize());
}
if(m_externalInitiatedEventIdHasBeenSet)
{
payload.WithInt64("externalInitiatedEventId", m_externalInitiatedEventId);
}
if(m_causeHasBeenSet)
{
payload.WithString("cause", WorkflowExecutionCancelRequestedCauseMapper::GetNameForWorkflowExecutionCancelRequestedCause(m_cause));
}
return std::move(payload);
}
示例8: Jsonize
JsonValue PortMapping::Jsonize() const
{
JsonValue payload;
if(m_containerPortHasBeenSet)
{
payload.WithInteger("containerPort", m_containerPort);
}
if(m_hostPortHasBeenSet)
{
payload.WithInteger("hostPort", m_hostPort);
}
if(m_protocolHasBeenSet)
{
payload.WithString("protocol", TransportProtocolMapper::GetNameForTransportProtocol(m_protocol));
}
return payload;
}
示例9: Jsonize
JsonValue PolicyToPath::Jsonize() const
{
JsonValue payload;
if(m_pathHasBeenSet)
{
payload.WithString("Path", m_path);
}
if(m_policiesHasBeenSet)
{
Array<JsonValue> policiesJsonList(m_policies.size());
for(unsigned policiesIndex = 0; policiesIndex < policiesJsonList.GetLength(); ++policiesIndex)
{
policiesJsonList[policiesIndex].AsObject(m_policies[policiesIndex].Jsonize());
}
payload.WithArray("Policies", std::move(policiesJsonList));
}
return payload;
}
示例10: SerializePayload
Aws::String AddCustomAttributesRequest::SerializePayload() const
{
JsonValue payload;
if(m_userPoolIdHasBeenSet)
{
payload.WithString("UserPoolId", m_userPoolId);
}
if(m_customAttributesHasBeenSet)
{
Array<JsonValue> customAttributesJsonList(m_customAttributes.size());
for(unsigned customAttributesIndex = 0; customAttributesIndex < customAttributesJsonList.GetLength(); ++customAttributesIndex)
{
customAttributesJsonList[customAttributesIndex].AsObject(m_customAttributes[customAttributesIndex].Jsonize());
}
payload.WithArray("CustomAttributes", std::move(customAttributesJsonList));
}
return payload.WriteReadable();
}
示例11: SerializePayload
Aws::String DescribeServicesRequest::SerializePayload() const
{
JsonValue payload;
if(m_serviceCodeListHasBeenSet)
{
Array<JsonValue> serviceCodeListJsonList(m_serviceCodeList.size());
for(unsigned serviceCodeListIndex = 0; serviceCodeListIndex < serviceCodeListJsonList.GetLength(); ++serviceCodeListIndex)
{
serviceCodeListJsonList[serviceCodeListIndex].AsString(m_serviceCodeList[serviceCodeListIndex]);
}
payload.WithArray("serviceCodeList", std::move(serviceCodeListJsonList));
}
if(m_languageHasBeenSet)
{
payload.WithString("language", m_language);
}
return payload.WriteReadable();
}
示例12: Jsonize
JsonValue ScriptBootstrapActionConfig::Jsonize() const
{
JsonValue payload;
if(m_pathHasBeenSet)
{
payload.WithString("Path", m_path);
}
if(m_argsHasBeenSet)
{
Array<JsonValue> argsJsonList(m_args.size());
for(unsigned argsIndex = 0; argsIndex < argsJsonList.GetLength(); ++argsIndex)
{
argsJsonList[argsIndex].AsString(m_args[argsIndex]);
}
payload.WithArray("Args", std::move(argsJsonList));
}
return std::move(payload);
}
示例13: SerializePayload
Aws::String CreateGlobalTableRequest::SerializePayload() const
{
JsonValue payload;
if(m_globalTableNameHasBeenSet)
{
payload.WithString("GlobalTableName", m_globalTableName);
}
if(m_replicationGroupHasBeenSet)
{
Array<JsonValue> replicationGroupJsonList(m_replicationGroup.size());
for(unsigned replicationGroupIndex = 0; replicationGroupIndex < replicationGroupJsonList.GetLength(); ++replicationGroupIndex)
{
replicationGroupJsonList[replicationGroupIndex].AsObject(m_replicationGroup[replicationGroupIndex].Jsonize());
}
payload.WithArray("ReplicationGroup", std::move(replicationGroupJsonList));
}
return payload.View().WriteReadable();
}
示例14: SerializePayload
Aws::String PutRecordBatchRequest::SerializePayload() const
{
JsonValue payload;
if(m_deliveryStreamNameHasBeenSet)
{
payload.WithString("DeliveryStreamName", m_deliveryStreamName);
}
if(m_recordsHasBeenSet)
{
Array<JsonValue> recordsJsonList(m_records.size());
for(unsigned recordsIndex = 0; recordsIndex < recordsJsonList.GetLength(); ++recordsIndex)
{
recordsJsonList[recordsIndex].AsObject(m_records[recordsIndex].Jsonize());
}
payload.WithArray("Records", std::move(recordsJsonList));
}
return payload.WriteReadable();
}
示例15: Jsonize
JsonValue DecisionTaskTimedOutEventAttributes::Jsonize() const
{
JsonValue payload;
if(m_timeoutTypeHasBeenSet)
{
payload.WithString("timeoutType", DecisionTaskTimeoutTypeMapper::GetNameForDecisionTaskTimeoutType(m_timeoutType));
}
if(m_scheduledEventIdHasBeenSet)
{
payload.WithInt64("scheduledEventId", m_scheduledEventId);
}
if(m_startedEventIdHasBeenSet)
{
payload.WithInt64("startedEventId", m_startedEventId);
}
return payload;
}