JsonValue AssessmentsFilter::Jsonize() const { JsonValue payload; if(m_assessmentNamePatternsHasBeenSet) { Array<JsonValue> assessmentNamePatternsJsonList(m_assessmentNamePatterns.size()); for(unsigned assessmentNamePatternsIndex = 0; assessmentNamePatternsIndex < assessmentNamePatternsJsonList.GetLength(); ++assessmentNamePatternsIndex) { assessmentNamePatternsJsonList[assessmentNamePatternsIndex].AsString(m_assessmentNamePatterns[assessmentNamePatternsIndex]); } payload.WithArray("assessmentNamePatterns", std::move(assessmentNamePatternsJsonList)); } if(m_assessmentStatesHasBeenSet) { Array<JsonValue> assessmentStatesJsonList(m_assessmentStates.size()); for(unsigned assessmentStatesIndex = 0; assessmentStatesIndex < assessmentStatesJsonList.GetLength(); ++assessmentStatesIndex) { assessmentStatesJsonList[assessmentStatesIndex].AsString(m_assessmentStates[assessmentStatesIndex]); } payload.WithArray("assessmentStates", std::move(assessmentStatesJsonList)); } if(m_dataCollectedHasBeenSet) { payload.WithBool("dataCollected", m_dataCollected); } if(m_startTimeRangeHasBeenSet) { payload.WithObject("startTimeRange", m_startTimeRange.Jsonize()); } if(m_endTimeRangeHasBeenSet) { payload.WithObject("endTimeRange", m_endTimeRange.Jsonize()); } if(m_durationRangeHasBeenSet) { payload.WithObject("durationRange", m_durationRange.Jsonize()); } return payload; }
JsonValue ProfileData::Jsonize() const { JsonValue payload; if(m_profileArnHasBeenSet) { payload.WithString("ProfileArn", m_profileArn); } if(m_profileNameHasBeenSet) { payload.WithString("ProfileName", m_profileName); } if(m_isDefaultHasBeenSet) { payload.WithBool("IsDefault", m_isDefault); } if(m_addressHasBeenSet) { payload.WithString("Address", m_address); } if(m_timezoneHasBeenSet) { payload.WithString("Timezone", m_timezone); } if(m_distanceUnitHasBeenSet) { payload.WithString("DistanceUnit", DistanceUnitMapper::GetNameForDistanceUnit(m_distanceUnit)); } if(m_temperatureUnitHasBeenSet) { payload.WithString("TemperatureUnit", TemperatureUnitMapper::GetNameForTemperatureUnit(m_temperatureUnit)); } if(m_wakeWordHasBeenSet) { payload.WithString("WakeWord", WakeWordMapper::GetNameForWakeWord(m_wakeWord)); } return payload; }
JsonValue ConfigurationRecorderStatus::Jsonize() const { JsonValue payload; if(m_nameHasBeenSet) { payload.WithString("name", m_name); } if(m_lastStartTimeHasBeenSet) { payload.WithDouble("lastStartTime", m_lastStartTime.SecondsWithMSPrecision()); } if(m_lastStopTimeHasBeenSet) { payload.WithDouble("lastStopTime", m_lastStopTime.SecondsWithMSPrecision()); } if(m_recordingHasBeenSet) { payload.WithBool("recording", m_recording); } if(m_lastStatusHasBeenSet) { payload.WithString("lastStatus", RecorderStatusMapper::GetNameForRecorderStatus(m_lastStatus)); } if(m_lastErrorCodeHasBeenSet) { payload.WithString("lastErrorCode", m_lastErrorCode); } if(m_lastErrorMessageHasBeenSet) { payload.WithString("lastErrorMessage", m_lastErrorMessage); } if(m_lastStatusChangeTimeHasBeenSet) { payload.WithDouble("lastStatusChangeTime", m_lastStatusChangeTime.SecondsWithMSPrecision()); } return payload; }
JsonValue Permission::Jsonize() const { JsonValue payload; if(m_stackIdHasBeenSet) { payload.WithString("StackId", m_stackId); } if(m_iamUserArnHasBeenSet) { payload.WithString("IamUserArn", m_iamUserArn); } if(m_allowSshHasBeenSet) { payload.WithBool("AllowSsh", m_allowSsh); } if(m_allowSudoHasBeenSet) { payload.WithBool("AllowSudo", m_allowSudo); } if(m_levelHasBeenSet) { payload.WithString("Level", m_level); } return payload; }
Aws::String SetPermissionRequest::SerializePayload() const { JsonValue payload; if(m_stackIdHasBeenSet) { payload.WithString("StackId", m_stackId); } if(m_iamUserArnHasBeenSet) { payload.WithString("IamUserArn", m_iamUserArn); } if(m_allowSshHasBeenSet) { payload.WithBool("AllowSsh", m_allowSsh); } if(m_allowSudoHasBeenSet) { payload.WithBool("AllowSudo", m_allowSudo); } if(m_levelHasBeenSet) { payload.WithString("Level", m_level); } return payload.WriteReadable(); }
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(); }
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(); }
Aws::String ListDiscoveredResourcesRequest::SerializePayload() const { JsonValue payload; if(m_resourceTypeHasBeenSet) { payload.WithString("resourceType", ResourceTypeMapper::GetNameForResourceType(m_resourceType)); } if(m_resourceIdsHasBeenSet) { Array<JsonValue> resourceIdsJsonList(m_resourceIds.size()); for(unsigned resourceIdsIndex = 0; resourceIdsIndex < resourceIdsJsonList.GetLength(); ++resourceIdsIndex) { resourceIdsJsonList[resourceIdsIndex].AsString(m_resourceIds[resourceIdsIndex]); } payload.WithArray("resourceIds", std::move(resourceIdsJsonList)); } if(m_resourceNameHasBeenSet) { payload.WithString("resourceName", m_resourceName); } if(m_limitHasBeenSet) { payload.WithInteger("limit", m_limit); } if(m_includeDeletedResourcesHasBeenSet) { payload.WithBool("includeDeletedResources", m_includeDeletedResources); } if(m_nextTokenHasBeenSet) { payload.WithString("nextToken", m_nextToken); } return payload.WriteReadable(); }
Aws::String CreateDeploymentRequest::SerializePayload() const { JsonValue payload; if(m_stageNameHasBeenSet) { payload.WithString("stageName", m_stageName); } if(m_stageDescriptionHasBeenSet) { payload.WithString("stageDescription", m_stageDescription); } if(m_descriptionHasBeenSet) { payload.WithString("description", m_description); } if(m_cacheClusterEnabledHasBeenSet) { payload.WithBool("cacheClusterEnabled", m_cacheClusterEnabled); } if(m_cacheClusterSizeHasBeenSet) { payload.WithString("cacheClusterSize", CacheClusterSizeMapper::GetNameForCacheClusterSize(m_cacheClusterSize)); } if(m_variablesHasBeenSet) { JsonValue variablesJsonMap; for(auto& variablesItem : m_variables) { variablesJsonMap.WithString(variablesItem.first, variablesItem.second); } payload.WithObject("variables", std::move(variablesJsonMap)); } return payload.WriteReadable(); }
JsonValue DockerVolumeConfiguration::Jsonize() const { JsonValue payload; if(m_scopeHasBeenSet) { payload.WithString("scope", ScopeMapper::GetNameForScope(m_scope)); } if(m_autoprovisionHasBeenSet) { payload.WithBool("autoprovision", m_autoprovision); } if(m_driverHasBeenSet) { payload.WithString("driver", m_driver); } if(m_driverOptsHasBeenSet) { JsonValue driverOptsJsonMap; for(auto& driverOptsItem : m_driverOpts) { driverOptsJsonMap.WithString(driverOptsItem.first, driverOptsItem.second); } payload.WithObject("driverOpts", std::move(driverOptsJsonMap)); } if(m_labelsHasBeenSet) { JsonValue labelsJsonMap; for(auto& labelsItem : m_labels) { labelsJsonMap.WithString(labelsItem.first, labelsItem.second); } payload.WithObject("labels", std::move(labelsJsonMap)); } return payload; }
Aws::String DeleteTrustRequest::SerializePayload() const { JsonValue payload; if(m_trustIdHasBeenSet) { payload.WithString("TrustId", m_trustId); } if(m_deleteAssociatedConditionalForwarderHasBeenSet) { payload.WithBool("DeleteAssociatedConditionalForwarder", m_deleteAssociatedConditionalForwarder); } return payload.View().WriteReadable(); }
JsonValue TimeToLiveSpecification::Jsonize() const { JsonValue payload; if(m_enabledHasBeenSet) { payload.WithBool("Enabled", m_enabled); } if(m_attributeNameHasBeenSet) { payload.WithString("AttributeName", m_attributeName); } return payload; }
Aws::String GetBundlesRequest::SerializePayload() const { JsonValue payload; if(m_includeInactiveHasBeenSet) { payload.WithBool("includeInactive", m_includeInactive); } if(m_pageTokenHasBeenSet) { payload.WithString("pageToken", m_pageToken); } return payload.WriteReadable(); }
JsonValue Beard::Jsonize() const { JsonValue payload; if(m_valueHasBeenSet) { payload.WithBool("Value", m_value); } if(m_confidenceHasBeenSet) { payload.WithDouble("Confidence", m_confidence); } return payload; }
JsonValue SMSChannelRequest::Jsonize() const { JsonValue payload; if(m_enabledHasBeenSet) { payload.WithBool("Enabled", m_enabled); } if(m_senderIdHasBeenSet) { payload.WithString("SenderId", m_senderId); } return payload; }
JsonValue VolumeFrom::Jsonize() const { JsonValue payload; if(m_sourceContainerHasBeenSet) { payload.WithString("sourceContainer", m_sourceContainer); } if(m_readOnlyHasBeenSet) { payload.WithBool("readOnly", m_readOnly); } return payload; }
JsonValue ComplianceContributorCount::Jsonize() const { JsonValue payload; if(m_cappedCountHasBeenSet) { payload.WithInteger("CappedCount", m_cappedCount); } if(m_capExceededHasBeenSet) { payload.WithBool("CapExceeded", m_capExceeded); } return payload; }
Aws::String DeactivatePipelineRequest::SerializePayload() const { JsonValue payload; if(m_pipelineIdHasBeenSet) { payload.WithString("pipelineId", m_pipelineId); } if(m_cancelActiveHasBeenSet) { payload.WithBool("cancelActive", m_cancelActive); } return payload.WriteReadable(); }
JsonValue MethodSnapshot::Jsonize() const { JsonValue payload; if(m_authorizationTypeHasBeenSet) { payload.WithString("authorizationType", m_authorizationType); } if(m_apiKeyRequiredHasBeenSet) { payload.WithBool("apiKeyRequired", m_apiKeyRequired); } return payload; }
Aws::String GetDataSourceRequest::SerializePayload() const { JsonValue payload; if(m_dataSourceIdHasBeenSet) { payload.WithString("DataSourceId", m_dataSourceId); } if(m_verboseHasBeenSet) { payload.WithBool("Verbose", m_verbose); } return payload.WriteReadable(); }
JsonValue ShutdownEventConfiguration::Jsonize() const { JsonValue payload; if(m_executionTimeoutHasBeenSet) { payload.WithInteger("ExecutionTimeout", m_executionTimeout); } if(m_delayUntilElbConnectionsDrainedHasBeenSet) { payload.WithBool("DelayUntilElbConnectionsDrained", m_delayUntilElbConnectionsDrained); } return payload; }
Aws::String PollForDecisionTaskRequest::SerializePayload() const { JsonValue payload; if(m_domainHasBeenSet) { payload.WithString("domain", m_domain); } if(m_taskListHasBeenSet) { payload.WithObject("taskList", m_taskList.Jsonize()); } if(m_identityHasBeenSet) { payload.WithString("identity", m_identity); } if(m_nextPageTokenHasBeenSet) { payload.WithString("nextPageToken", m_nextPageToken); } if(m_maximumPageSizeHasBeenSet) { payload.WithInteger("maximumPageSize", m_maximumPageSize); } if(m_reverseOrderHasBeenSet) { payload.WithBool("reverseOrder", m_reverseOrder); } return payload.WriteReadable(); }
Aws::String UpdateApiRequest::SerializePayload() const { JsonValue payload; if(m_apiKeySelectionExpressionHasBeenSet) { payload.WithString("apiKeySelectionExpression", m_apiKeySelectionExpression); } if(m_descriptionHasBeenSet) { payload.WithString("description", m_description); } if(m_disableSchemaValidationHasBeenSet) { payload.WithBool("disableSchemaValidation", m_disableSchemaValidation); } if(m_nameHasBeenSet) { payload.WithString("name", m_name); } if(m_routeSelectionExpressionHasBeenSet) { payload.WithString("routeSelectionExpression", m_routeSelectionExpression); } if(m_versionHasBeenSet) { payload.WithString("version", m_version); } return payload.View().WriteReadable(); }
JsonValue ProvisioningArtifactParameter::Jsonize() const { JsonValue payload; if(m_parameterKeyHasBeenSet) { payload.WithString("ParameterKey", m_parameterKey); } if(m_defaultValueHasBeenSet) { payload.WithString("DefaultValue", m_defaultValue); } if(m_parameterTypeHasBeenSet) { payload.WithString("ParameterType", m_parameterType); } if(m_isNoEchoHasBeenSet) { payload.WithBool("IsNoEcho", m_isNoEcho); } if(m_descriptionHasBeenSet) { payload.WithString("Description", m_description); } if(m_parameterConstraintsHasBeenSet) { payload.WithObject("ParameterConstraints", m_parameterConstraints.Jsonize()); } return payload; }
Aws::String NotifyMigrationTaskStateRequest::SerializePayload() const { JsonValue payload; if(m_progressUpdateStreamHasBeenSet) { payload.WithString("ProgressUpdateStream", m_progressUpdateStream); } if(m_migrationTaskNameHasBeenSet) { payload.WithString("MigrationTaskName", m_migrationTaskName); } if(m_taskHasBeenSet) { payload.WithObject("Task", m_task.Jsonize()); } if(m_updateDateTimeHasBeenSet) { payload.WithDouble("UpdateDateTime", m_updateDateTime.SecondsWithMSPrecision()); } if(m_nextUpdateSecondsHasBeenSet) { payload.WithInteger("NextUpdateSeconds", m_nextUpdateSeconds); } if(m_dryRunHasBeenSet) { payload.WithBool("DryRun", m_dryRun); } return payload.View().WriteReadable(); }
Aws::String ListServerNeighborsRequest::SerializePayload() const { JsonValue payload; if(m_configurationIdHasBeenSet) { payload.WithString("configurationId", m_configurationId); } if(m_portInformationNeededHasBeenSet) { payload.WithBool("portInformationNeeded", m_portInformationNeeded); } if(m_neighborConfigurationIdsHasBeenSet) { Array<JsonValue> neighborConfigurationIdsJsonList(m_neighborConfigurationIds.size()); for(unsigned neighborConfigurationIdsIndex = 0; neighborConfigurationIdsIndex < neighborConfigurationIdsJsonList.GetLength(); ++neighborConfigurationIdsIndex) { neighborConfigurationIdsJsonList[neighborConfigurationIdsIndex].AsString(m_neighborConfigurationIds[neighborConfigurationIdsIndex]); } payload.WithArray("neighborConfigurationIds", std::move(neighborConfigurationIdsJsonList)); } if(m_maxResultsHasBeenSet) { payload.WithInteger("maxResults", m_maxResults); } if(m_nextTokenHasBeenSet) { payload.WithString("nextToken", m_nextToken); } return payload.View().WriteReadable(); }
JsonValue Predicate::Jsonize() const { JsonValue payload; if(m_negatedHasBeenSet) { payload.WithBool("Negated", m_negated); } if(m_typeHasBeenSet) { payload.WithString("Type", PredicateTypeMapper::GetNameForPredicateType(m_type)); } if(m_dataIdHasBeenSet) { payload.WithString("DataId", m_dataId); } return payload; }
JsonValue PolicyVersion::Jsonize() const { JsonValue payload; if(m_versionIdHasBeenSet) { payload.WithString("versionId", m_versionId); } if(m_isDefaultVersionHasBeenSet) { payload.WithBool("isDefaultVersion", m_isDefaultVersion); } if(m_createDateHasBeenSet) { payload.WithDouble("createDate", m_createDate.SecondsWithMSPrecision()); } return payload; }
JsonValue EbsConfiguration::Jsonize() const { JsonValue payload; if(m_ebsBlockDeviceConfigsHasBeenSet) { Array<JsonValue> ebsBlockDeviceConfigsJsonList(m_ebsBlockDeviceConfigs.size()); for(unsigned ebsBlockDeviceConfigsIndex = 0; ebsBlockDeviceConfigsIndex < ebsBlockDeviceConfigsJsonList.GetLength(); ++ebsBlockDeviceConfigsIndex) { ebsBlockDeviceConfigsJsonList[ebsBlockDeviceConfigsIndex].AsObject(m_ebsBlockDeviceConfigs[ebsBlockDeviceConfigsIndex].Jsonize()); } payload.WithArray("EbsBlockDeviceConfigs", std::move(ebsBlockDeviceConfigsJsonList)); } if(m_ebsOptimizedHasBeenSet) { payload.WithBool("EbsOptimized", m_ebsOptimized); } return payload; }
Aws::String SetTerminationProtectionRequest::SerializePayload() const { JsonValue payload; if(m_jobFlowIdsHasBeenSet) { Array<JsonValue> jobFlowIdsJsonList(m_jobFlowIds.size()); for(unsigned jobFlowIdsIndex = 0; jobFlowIdsIndex < jobFlowIdsJsonList.GetLength(); ++jobFlowIdsIndex) { jobFlowIdsJsonList[jobFlowIdsIndex].AsString(m_jobFlowIds[jobFlowIdsIndex]); } payload.WithArray("JobFlowIds", std::move(jobFlowIdsJsonList)); } if(m_terminationProtectedHasBeenSet) { payload.WithBool("TerminationProtected", m_terminationProtected); } return payload.WriteReadable(); }