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


C++ JsonValue::WithInteger方法代码示例

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


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

示例1: 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;
}
开发者ID:ukjhsa,项目名称:aws-sdk-cpp,代码行数:23,代码来源:PortMapping.cpp

示例2: SerializePayload

Aws::String GetInstanceMetricDataRequest::SerializePayload() const
{
  JsonValue payload;

  if(m_instanceNameHasBeenSet)
  {
   payload.WithString("instanceName", m_instanceName);

  }

  if(m_metricNameHasBeenSet)
  {
   payload.WithString("metricName", InstanceMetricNameMapper::GetNameForInstanceMetricName(m_metricName));
  }

  if(m_periodHasBeenSet)
  {
   payload.WithInteger("period", m_period);

  }

  if(m_startTimeHasBeenSet)
  {
   payload.WithDouble("startTime", m_startTime.SecondsWithMSPrecision());
  }

  if(m_endTimeHasBeenSet)
  {
   payload.WithDouble("endTime", m_endTime.SecondsWithMSPrecision());
  }

  if(m_unitHasBeenSet)
  {
   payload.WithString("unit", MetricUnitMapper::GetNameForMetricUnit(m_unit));
  }

  if(m_statisticsHasBeenSet)
  {
   Array<JsonValue> statisticsJsonList(m_statistics.size());
   for(unsigned statisticsIndex = 0; statisticsIndex < statisticsJsonList.GetLength(); ++statisticsIndex)
   {
     statisticsJsonList[statisticsIndex].AsString(MetricStatisticMapper::GetNameForMetricStatistic(m_statistics[statisticsIndex]));
   }
   payload.WithArray("statistics", std::move(statisticsJsonList));

  }

  return payload.WriteReadable();
}
开发者ID:capeanalytics,项目名称:aws-sdk-cpp,代码行数:49,代码来源:GetInstanceMetricDataRequest.cpp

示例3: Jsonize

JsonValue WorkflowExecutionOpenCounts::Jsonize() const
{
  JsonValue payload;

  if(m_openActivityTasksHasBeenSet)
  {
   payload.WithInteger("openActivityTasks", m_openActivityTasks);

  }

  if(m_openDecisionTasksHasBeenSet)
  {
   payload.WithInteger("openDecisionTasks", m_openDecisionTasks);

  }

  if(m_openTimersHasBeenSet)
  {
   payload.WithInteger("openTimers", m_openTimers);

  }

  if(m_openChildWorkflowExecutionsHasBeenSet)
  {
   payload.WithInteger("openChildWorkflowExecutions", m_openChildWorkflowExecutions);

  }

  if(m_openLambdaFunctionsHasBeenSet)
  {
   payload.WithInteger("openLambdaFunctions", m_openLambdaFunctions);

  }

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

示例4: Jsonize

JsonValue Ulimit::Jsonize() const
{
  JsonValue payload;

  if(m_hardLimitHasBeenSet)
  {
   payload.WithInteger("hardLimit", m_hardLimit);

  }

  if(m_nameHasBeenSet)
  {
   payload.WithString("name", m_name);

  }

  if(m_softLimitHasBeenSet)
  {
   payload.WithInteger("softLimit", m_softLimit);

  }

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

示例5: Jsonize

JsonValue VolumeiSCSIAttributes::Jsonize() const
{
  JsonValue payload;

  if(m_targetARNHasBeenSet)
  {
   payload.WithString("TargetARN", m_targetARN);

  }

  if(m_networkInterfaceIdHasBeenSet)
  {
   payload.WithString("NetworkInterfaceId", m_networkInterfaceId);

  }

  if(m_networkInterfacePortHasBeenSet)
  {
   payload.WithInteger("NetworkInterfacePort", m_networkInterfacePort);

  }

  if(m_lunNumberHasBeenSet)
  {
   payload.WithInteger("LunNumber", m_lunNumber);

  }

  if(m_chapEnabledHasBeenSet)
  {
   payload.WithBool("ChapEnabled", m_chapEnabled);

  }

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

示例6: Jsonize

JsonValue SnapshotLimits::Jsonize() const
{
  JsonValue payload;

  if(m_manualSnapshotsLimitHasBeenSet)
  {
   payload.WithInteger("ManualSnapshotsLimit", m_manualSnapshotsLimit);

  }

  if(m_manualSnapshotsCurrentCountHasBeenSet)
  {
   payload.WithInteger("ManualSnapshotsCurrentCount", m_manualSnapshotsCurrentCount);

  }

  if(m_manualSnapshotsLimitReachedHasBeenSet)
  {
   payload.WithBool("ManualSnapshotsLimitReached", m_manualSnapshotsLimitReached);

  }

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

示例7: SerializePayload

Aws::String GetLogEventsRequest::SerializePayload() const
{
  JsonValue payload;

  if(m_logGroupNameHasBeenSet)
  {
   payload.WithString("logGroupName", m_logGroupName);

  }

  if(m_logStreamNameHasBeenSet)
  {
   payload.WithString("logStreamName", m_logStreamName);

  }

  if(m_startTimeHasBeenSet)
  {
   payload.WithInt64("startTime", m_startTime);

  }

  if(m_endTimeHasBeenSet)
  {
   payload.WithInt64("endTime", m_endTime);

  }

  if(m_nextTokenHasBeenSet)
  {
   payload.WithString("nextToken", m_nextToken);

  }

  if(m_limitHasBeenSet)
  {
   payload.WithInteger("limit", m_limit);

  }

  if(m_startFromHeadHasBeenSet)
  {
   payload.WithBool("startFromHead", m_startFromHead);

  }

  return payload.WriteReadable();
}
开发者ID:Bu11etmagnet,项目名称:aws-sdk-cpp,代码行数:48,代码来源:GetLogEventsRequest.cpp

示例8: SerializePayload

Aws::String DescribeWorkspacesRequest::SerializePayload() const
{
  JsonValue payload;

  if(m_workspaceIdsHasBeenSet)
  {
   Array<JsonValue> workspaceIdsJsonList(m_workspaceIds.size());
   for(unsigned workspaceIdsIndex = 0; workspaceIdsIndex < workspaceIdsJsonList.GetLength(); ++workspaceIdsIndex)
   {
     workspaceIdsJsonList[workspaceIdsIndex].AsString(m_workspaceIds[workspaceIdsIndex]);
   }
   payload.WithArray("WorkspaceIds", std::move(workspaceIdsJsonList));

  }

  if(m_directoryIdHasBeenSet)
  {
   payload.WithString("DirectoryId", m_directoryId);

  }

  if(m_userNameHasBeenSet)
  {
   payload.WithString("UserName", m_userName);

  }

  if(m_bundleIdHasBeenSet)
  {
   payload.WithString("BundleId", m_bundleId);

  }

  if(m_limitHasBeenSet)
  {
   payload.WithInteger("Limit", m_limit);

  }

  if(m_nextTokenHasBeenSet)
  {
   payload.WithString("NextToken", m_nextToken);

  }

  return payload.WriteReadable();
}
开发者ID:chadbrewbaker,项目名称:aws-sdk-cpp,代码行数:47,代码来源:DescribeWorkspacesRequest.cpp

示例9: Jsonize

JsonValue Resource::Jsonize() const
{
  JsonValue payload;

  if(m_nameHasBeenSet)
  {
   payload.WithString("name", m_name);

  }

  if(m_typeHasBeenSet)
  {
   payload.WithString("type", m_type);

  }

  if(m_doubleValueHasBeenSet)
  {
   payload.WithDouble("doubleValue", m_doubleValue);

  }

  if(m_longValueHasBeenSet)
  {
   payload.WithInt64("longValue", m_longValue);

  }

  if(m_integerValueHasBeenSet)
  {
   payload.WithInteger("integerValue", m_integerValue);

  }

  if(m_stringSetValueHasBeenSet)
  {
   Array<JsonValue> stringSetValueJsonList(m_stringSetValue.size());
   for(unsigned stringSetValueIndex = 0; stringSetValueIndex < stringSetValueJsonList.GetLength(); ++stringSetValueIndex)
   {
     stringSetValueJsonList[stringSetValueIndex].AsString(m_stringSetValue[stringSetValueIndex]);
   }
   payload.WithArray("stringSetValue", std::move(stringSetValueJsonList));

  }

  return payload;
}
开发者ID:chadbrewbaker,项目名称:aws-sdk-cpp,代码行数:47,代码来源:Resource.cpp

示例10: SerializePayload

Aws::String DescribeImagesRequest::SerializePayload() const
{
  JsonValue payload;

  if(m_registryIdHasBeenSet)
  {
   payload.WithString("registryId", m_registryId);

  }

  if(m_repositoryNameHasBeenSet)
  {
   payload.WithString("repositoryName", m_repositoryName);

  }

  if(m_imageIdsHasBeenSet)
  {
   Array<JsonValue> imageIdsJsonList(m_imageIds.size());
   for(unsigned imageIdsIndex = 0; imageIdsIndex < imageIdsJsonList.GetLength(); ++imageIdsIndex)
   {
     imageIdsJsonList[imageIdsIndex].AsObject(m_imageIds[imageIdsIndex].Jsonize());
   }
   payload.WithArray("imageIds", std::move(imageIdsJsonList));

  }

  if(m_nextTokenHasBeenSet)
  {
   payload.WithString("nextToken", m_nextToken);

  }

  if(m_maxResultsHasBeenSet)
  {
   payload.WithInteger("maxResults", m_maxResults);

  }

  if(m_filterHasBeenSet)
  {
   payload.WithObject("filter", m_filter.Jsonize());

  }

  return payload.WriteReadable();
}
开发者ID:chadbrewbaker,项目名称:aws-sdk-cpp,代码行数:47,代码来源:DescribeImagesRequest.cpp

示例11: SerializePayload

Aws::String ListCommandInvocationsRequest::SerializePayload() const
{
  JsonValue payload;

  if(m_commandIdHasBeenSet)
  {
   payload.WithString("CommandId", m_commandId);

  }

  if(m_instanceIdHasBeenSet)
  {
   payload.WithString("InstanceId", m_instanceId);

  }

  if(m_maxResultsHasBeenSet)
  {
   payload.WithInteger("MaxResults", m_maxResults);

  }

  if(m_nextTokenHasBeenSet)
  {
   payload.WithString("NextToken", m_nextToken);

  }

  if(m_filtersHasBeenSet)
  {
   Array<JsonValue> filtersJsonList(m_filters.size());
   for(unsigned filtersIndex = 0; filtersIndex < filtersJsonList.GetLength(); ++filtersIndex)
   {
     filtersJsonList[filtersIndex].AsObject(m_filters[filtersIndex].Jsonize());
   }
   payload.WithArray("Filters", std::move(filtersJsonList));

  }

  if(m_detailsHasBeenSet)
  {
   payload.WithBool("Details", m_details);

  }

  return payload.WriteReadable();
}
开发者ID:capeanalytics,项目名称:aws-sdk-cpp,代码行数:47,代码来源:ListCommandInvocationsRequest.cpp

示例12: SerializePayload

Aws::String StartBuildRequest::SerializePayload() const
{
  JsonValue payload;

  if(m_projectNameHasBeenSet)
  {
   payload.WithString("projectName", m_projectName);

  }

  if(m_sourceVersionHasBeenSet)
  {
   payload.WithString("sourceVersion", m_sourceVersion);

  }

  if(m_artifactsOverrideHasBeenSet)
  {
   payload.WithObject("artifactsOverride", m_artifactsOverride.Jsonize());

  }

  if(m_environmentVariablesOverrideHasBeenSet)
  {
   Array<JsonValue> environmentVariablesOverrideJsonList(m_environmentVariablesOverride.size());
   for(unsigned environmentVariablesOverrideIndex = 0; environmentVariablesOverrideIndex < environmentVariablesOverrideJsonList.GetLength(); ++environmentVariablesOverrideIndex)
   {
     environmentVariablesOverrideJsonList[environmentVariablesOverrideIndex].AsObject(m_environmentVariablesOverride[environmentVariablesOverrideIndex].Jsonize());
   }
   payload.WithArray("environmentVariablesOverride", std::move(environmentVariablesOverrideJsonList));

  }

  if(m_buildspecOverrideHasBeenSet)
  {
   payload.WithString("buildspecOverride", m_buildspecOverride);

  }

  if(m_timeoutInMinutesOverrideHasBeenSet)
  {
   payload.WithInteger("timeoutInMinutesOverride", m_timeoutInMinutesOverride);

  }

  return payload.WriteReadable();
}
开发者ID:capeanalytics,项目名称:aws-sdk-cpp,代码行数:47,代码来源:StartBuildRequest.cpp

示例13: Jsonize

JsonValue ActionExecution::Jsonize() const
{
  JsonValue payload;

  if(m_statusHasBeenSet)
  {
   payload.WithString("status", ActionExecutionStatusMapper::GetNameForActionExecutionStatus(m_status));
  }

  if(m_summaryHasBeenSet)
  {
   payload.WithString("summary", m_summary);

  }

  if(m_lastStatusChangeHasBeenSet)
  {
   payload.WithDouble("lastStatusChange", m_lastStatusChange.SecondsWithMSPrecision());
  }

  if(m_externalExecutionIdHasBeenSet)
  {
   payload.WithString("externalExecutionId", m_externalExecutionId);

  }

  if(m_externalExecutionUrlHasBeenSet)
  {
   payload.WithString("externalExecutionUrl", m_externalExecutionUrl);

  }

  if(m_percentCompleteHasBeenSet)
  {
   payload.WithInteger("percentComplete", m_percentComplete);

  }

  if(m_errorDetailsHasBeenSet)
  {
   payload.WithObject("errorDetails", m_errorDetails.Jsonize());

  }

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

示例14: Jsonize

JsonValue GroupType::Jsonize() const
{
  JsonValue payload;

  if(m_groupNameHasBeenSet)
  {
   payload.WithString("GroupName", m_groupName);

  }

  if(m_userPoolIdHasBeenSet)
  {
   payload.WithString("UserPoolId", m_userPoolId);

  }

  if(m_descriptionHasBeenSet)
  {
   payload.WithString("Description", m_description);

  }

  if(m_roleArnHasBeenSet)
  {
   payload.WithString("RoleArn", m_roleArn);

  }

  if(m_precedenceHasBeenSet)
  {
   payload.WithInteger("Precedence", m_precedence);

  }

  if(m_lastModifiedDateHasBeenSet)
  {
   payload.WithDouble("LastModifiedDate", m_lastModifiedDate.SecondsWithMSPrecision());
  }

  if(m_creationDateHasBeenSet)
  {
   payload.WithDouble("CreationDate", m_creationDate.SecondsWithMSPrecision());
  }

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

示例15: Jsonize

JsonValue MinimumHealthyHosts::Jsonize() const
{
  JsonValue payload;

  if(m_valueHasBeenSet)
  {
   payload.WithInteger("value", m_value);

  }

  if(m_typeHasBeenSet)
  {
   payload.WithString("type", MinimumHealthyHostsTypeMapper::GetNameForMinimumHealthyHostsType(m_type));
  }

  return std::move(payload);
}
开发者ID:wrtcoder,项目名称:aws-sdk-cpp,代码行数:17,代码来源:MinimumHealthyHosts.cpp


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