JsonValue KeyPhrasesDetectionJobFilter::Jsonize() const { JsonValue payload; if(m_jobNameHasBeenSet) { payload.WithString("JobName", m_jobName); } if(m_jobStatusHasBeenSet) { payload.WithString("JobStatus", JobStatusMapper::GetNameForJobStatus(m_jobStatus)); } if(m_submitTimeBeforeHasBeenSet) { payload.WithDouble("SubmitTimeBefore", m_submitTimeBefore.SecondsWithMSPrecision()); } if(m_submitTimeAfterHasBeenSet) { payload.WithDouble("SubmitTimeAfter", m_submitTimeAfter.SecondsWithMSPrecision()); } return payload; }
JsonValue PublicKey::Jsonize() const { JsonValue payload; if(m_valueHasBeenSet) { payload.WithString("Value", HashingUtils::Base64Encode(m_value)); } if(m_validityStartTimeHasBeenSet) { payload.WithDouble("ValidityStartTime", m_validityStartTime); } if(m_validityEndTimeHasBeenSet) { payload.WithDouble("ValidityEndTime", m_validityEndTime); } if(m_fingerprintHasBeenSet) { payload.WithString("Fingerprint", m_fingerprint); } return payload; }
JsonValue Trust::Jsonize() const { JsonValue payload; if(m_directoryIdHasBeenSet) { payload.WithString("DirectoryId", m_directoryId); } if(m_trustIdHasBeenSet) { payload.WithString("TrustId", m_trustId); } if(m_remoteDomainNameHasBeenSet) { payload.WithString("RemoteDomainName", m_remoteDomainName); } if(m_trustTypeHasBeenSet) { payload.WithString("TrustType", TrustTypeMapper::GetNameForTrustType(m_trustType)); } if(m_trustDirectionHasBeenSet) { payload.WithString("TrustDirection", TrustDirectionMapper::GetNameForTrustDirection(m_trustDirection)); } if(m_trustStateHasBeenSet) { payload.WithString("TrustState", TrustStateMapper::GetNameForTrustState(m_trustState)); } if(m_createdDateTimeHasBeenSet) { payload.WithDouble("CreatedDateTime", m_createdDateTime.SecondsWithMSPrecision()); } if(m_lastUpdatedDateTimeHasBeenSet) { payload.WithDouble("LastUpdatedDateTime", m_lastUpdatedDateTime.SecondsWithMSPrecision()); } if(m_stateLastUpdatedDateTimeHasBeenSet) { payload.WithDouble("StateLastUpdatedDateTime", m_stateLastUpdatedDateTime.SecondsWithMSPrecision()); } if(m_trustStateReasonHasBeenSet) { payload.WithString("TrustStateReason", m_trustStateReason); } return payload; }
JsonValue SlotTypeMetadata::Jsonize() const { JsonValue payload; if(m_nameHasBeenSet) { payload.WithString("name", m_name); } if(m_descriptionHasBeenSet) { payload.WithString("description", m_description); } if(m_lastUpdatedDateHasBeenSet) { payload.WithDouble("lastUpdatedDate", m_lastUpdatedDate.SecondsWithMSPrecision()); } if(m_createdDateHasBeenSet) { payload.WithDouble("createdDate", m_createdDate.SecondsWithMSPrecision()); } if(m_versionHasBeenSet) { payload.WithString("version", m_version); } return payload; }
JsonValue StepExecutionStatusDetail::Jsonize() const { JsonValue payload; if(m_stateHasBeenSet) { payload.WithString("State", StepExecutionStateMapper::GetNameForStepExecutionState(m_state)); } if(m_creationDateTimeHasBeenSet) { payload.WithDouble("CreationDateTime", m_creationDateTime); } if(m_startDateTimeHasBeenSet) { payload.WithDouble("StartDateTime", m_startDateTime); } if(m_endDateTimeHasBeenSet) { payload.WithDouble("EndDateTime", m_endDateTime); } if(m_lastStateChangeReasonHasBeenSet) { payload.WithString("LastStateChangeReason", m_lastStateChangeReason); } return std::move(payload); }
JsonValue IdentityDescription::Jsonize() const { JsonValue payload; if(m_identityIdHasBeenSet) { payload.WithString("IdentityId", m_identityId); } if(m_loginsHasBeenSet) { Array<JsonValue> loginsJsonList(m_logins.size()); for(unsigned loginsIndex = 0; loginsIndex < loginsJsonList.GetLength(); ++loginsIndex) { loginsJsonList[loginsIndex].AsString(m_logins[loginsIndex]); } payload.WithArray("Logins", std::move(loginsJsonList)); } if(m_creationDateHasBeenSet) { payload.WithDouble("CreationDate", m_creationDate); } if(m_lastModifiedDateHasBeenSet) { payload.WithDouble("LastModifiedDate", m_lastModifiedDate); } return std::move(payload); }
JsonValue WorkflowTypeInfo::Jsonize() const { JsonValue payload; if(m_workflowTypeHasBeenSet) { payload.WithObject("workflowType", m_workflowType.Jsonize()); } if(m_statusHasBeenSet) { payload.WithString("status", RegistrationStatusMapper::GetNameForRegistrationStatus(m_status)); } if(m_descriptionHasBeenSet) { payload.WithString("description", m_description); } if(m_creationDateHasBeenSet) { payload.WithDouble("creationDate", m_creationDate); } if(m_deprecationDateHasBeenSet) { payload.WithDouble("deprecationDate", m_deprecationDate); } return payload; }
JsonValue PipelineSummary::Jsonize() const { JsonValue payload; if(m_nameHasBeenSet) { payload.WithString("name", m_name); } if(m_versionHasBeenSet) { payload.WithInteger("version", m_version); } if(m_createdHasBeenSet) { payload.WithDouble("created", m_created.SecondsWithMSPrecision()); } if(m_updatedHasBeenSet) { payload.WithDouble("updated", m_updated.SecondsWithMSPrecision()); } return payload; }
JsonValue PipelineExecutionSummary::Jsonize() const { JsonValue payload; if(m_pipelineExecutionIdHasBeenSet) { payload.WithString("pipelineExecutionId", m_pipelineExecutionId); } if(m_statusHasBeenSet) { payload.WithString("status", PipelineExecutionStatusMapper::GetNameForPipelineExecutionStatus(m_status)); } if(m_startTimeHasBeenSet) { payload.WithDouble("startTime", m_startTime.SecondsWithMSPrecision()); } if(m_lastUpdateTimeHasBeenSet) { payload.WithDouble("lastUpdateTime", m_lastUpdateTime.SecondsWithMSPrecision()); } return payload; }
Aws::String ListClustersRequest::SerializePayload() const { JsonValue payload; if(m_createdAfterHasBeenSet) { payload.WithDouble("CreatedAfter", m_createdAfter.SecondsWithMSPrecision()); } if(m_createdBeforeHasBeenSet) { payload.WithDouble("CreatedBefore", m_createdBefore.SecondsWithMSPrecision()); } if(m_clusterStatesHasBeenSet) { Array<JsonValue> clusterStatesJsonList(m_clusterStates.size()); for(unsigned clusterStatesIndex = 0; clusterStatesIndex < clusterStatesJsonList.GetLength(); ++clusterStatesIndex) { clusterStatesJsonList[clusterStatesIndex].AsString(ClusterStateMapper::GetNameForClusterState(m_clusterStates[clusterStatesIndex])); } payload.WithArray("ClusterStates", std::move(clusterStatesJsonList)); } if(m_markerHasBeenSet) { payload.WithString("Marker", m_marker); } return payload.WriteReadable(); }
JsonValue KeyMetadata::Jsonize() const { JsonValue payload; if(m_aWSAccountIdHasBeenSet) { payload.WithString("AWSAccountId", m_aWSAccountId); } if(m_keyIdHasBeenSet) { payload.WithString("KeyId", m_keyId); } if(m_arnHasBeenSet) { payload.WithString("Arn", m_arn); } if(m_creationDateHasBeenSet) { payload.WithDouble("CreationDate", m_creationDate); } if(m_enabledHasBeenSet) { payload.WithBool("Enabled", m_enabled); } if(m_descriptionHasBeenSet) { payload.WithString("Description", m_description); } if(m_keyUsageHasBeenSet) { payload.WithString("KeyUsage", KeyUsageTypeMapper::GetNameForKeyUsageType(m_keyUsage)); } if(m_keyStateHasBeenSet) { payload.WithString("KeyState", KeyStateMapper::GetNameForKeyState(m_keyState)); } if(m_deletionDateHasBeenSet) { payload.WithDouble("DeletionDate", m_deletionDate); } return payload; }
JsonValue ApiKey::Jsonize() const { JsonValue payload; if(m_idHasBeenSet) { payload.WithString("id", m_id); } if(m_valueHasBeenSet) { payload.WithString("value", m_value); } if(m_nameHasBeenSet) { payload.WithString("name", m_name); } if(m_descriptionHasBeenSet) { payload.WithString("description", m_description); } if(m_enabledHasBeenSet) { payload.WithBool("enabled", m_enabled); } if(m_createdDateHasBeenSet) { payload.WithDouble("createdDate", m_createdDate.SecondsWithMSPrecision()); } if(m_lastUpdatedDateHasBeenSet) { payload.WithDouble("lastUpdatedDate", m_lastUpdatedDate.SecondsWithMSPrecision()); } if(m_stageKeysHasBeenSet) { Array<JsonValue> stageKeysJsonList(m_stageKeys.size()); for(unsigned stageKeysIndex = 0; stageKeysIndex < stageKeysJsonList.GetLength(); ++stageKeysIndex) { stageKeysJsonList[stageKeysIndex].AsString(m_stageKeys[stageKeysIndex]); } payload.WithArray("stageKeys", std::move(stageKeysJsonList)); } return payload; }
JsonValue Certificate::Jsonize() const { JsonValue payload; if(m_certificateIdentifierHasBeenSet) { payload.WithString("CertificateIdentifier", m_certificateIdentifier); } if(m_certificateCreationDateHasBeenSet) { payload.WithDouble("CertificateCreationDate", m_certificateCreationDate.SecondsWithMSPrecision()); } if(m_certificatePemHasBeenSet) { payload.WithString("CertificatePem", m_certificatePem); } if(m_certificateArnHasBeenSet) { payload.WithString("CertificateArn", m_certificateArn); } if(m_certificateOwnerHasBeenSet) { payload.WithString("CertificateOwner", m_certificateOwner); } if(m_validFromDateHasBeenSet) { payload.WithDouble("ValidFromDate", m_validFromDate.SecondsWithMSPrecision()); } if(m_validToDateHasBeenSet) { payload.WithDouble("ValidToDate", m_validToDate.SecondsWithMSPrecision()); } if(m_signingAlgorithmHasBeenSet) { payload.WithString("SigningAlgorithm", m_signingAlgorithm); } if(m_keyLengthHasBeenSet) { payload.WithInteger("KeyLength", m_keyLength); } return payload; }
Aws::String GetMetricDataRequest::SerializePayload() const { JsonValue payload; if(m_startTimeHasBeenSet) { payload.WithDouble("StartTime", m_startTime.SecondsWithMSPrecision()); } if(m_endTimeHasBeenSet) { payload.WithDouble("EndTime", m_endTime.SecondsWithMSPrecision()); } if(m_filtersHasBeenSet) { payload.WithObject("Filters", m_filters.Jsonize()); } if(m_groupingsHasBeenSet) { Array<JsonValue> groupingsJsonList(m_groupings.size()); for(unsigned groupingsIndex = 0; groupingsIndex < groupingsJsonList.GetLength(); ++groupingsIndex) { groupingsJsonList[groupingsIndex].AsString(GroupingMapper::GetNameForGrouping(m_groupings[groupingsIndex])); } payload.WithArray("Groupings", std::move(groupingsJsonList)); } if(m_historicalMetricsHasBeenSet) { Array<JsonValue> historicalMetricsJsonList(m_historicalMetrics.size()); for(unsigned historicalMetricsIndex = 0; historicalMetricsIndex < historicalMetricsJsonList.GetLength(); ++historicalMetricsIndex) { historicalMetricsJsonList[historicalMetricsIndex].AsObject(m_historicalMetrics[historicalMetricsIndex].Jsonize()); } payload.WithArray("HistoricalMetrics", std::move(historicalMetricsJsonList)); } if(m_nextTokenHasBeenSet) { payload.WithString("NextToken", m_nextToken); } if(m_maxResultsHasBeenSet) { payload.WithInteger("MaxResults", m_maxResults); } return payload.View().WriteReadable(); }
JsonValue FieldStats::Jsonize() const { JsonValue payload; if(m_minHasBeenSet) { payload.WithString("min", m_min); } if(m_maxHasBeenSet) { payload.WithString("max", m_max); } if(m_countHasBeenSet) { payload.WithInt64("count", m_count); } if(m_missingHasBeenSet) { payload.WithInt64("missing", m_missing); } if(m_sumHasBeenSet) { payload.WithDouble("sum", m_sum); } if(m_sumOfSquaresHasBeenSet) { payload.WithDouble("sumOfSquares", m_sumOfSquares); } if(m_meanHasBeenSet) { payload.WithString("mean", m_mean); } if(m_stddevHasBeenSet) { payload.WithDouble("stddev", m_stddev); } return payload; }
JsonValue ConfigurationRecorderStatus::Jsonize() const { JsonValue payload; if(m_nameHasBeenSet) { payload.WithString("name", m_name); } if(m_lastStartTimeHasBeenSet) { payload.WithDouble("lastStartTime", m_lastStartTime); } if(m_lastStopTimeHasBeenSet) { payload.WithDouble("lastStopTime", m_lastStopTime); } 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); } return payload; }
JsonValue AutoScalingThresholds::Jsonize() const { JsonValue payload; if(m_instanceCountHasBeenSet) { payload.WithInteger("InstanceCount", m_instanceCount); } if(m_thresholdsWaitTimeHasBeenSet) { payload.WithInteger("ThresholdsWaitTime", m_thresholdsWaitTime); } if(m_ignoreMetricsTimeHasBeenSet) { payload.WithInteger("IgnoreMetricsTime", m_ignoreMetricsTime); } if(m_cpuThresholdHasBeenSet) { payload.WithDouble("CpuThreshold", m_cpuThreshold); } if(m_memoryThresholdHasBeenSet) { payload.WithDouble("MemoryThreshold", m_memoryThreshold); } if(m_loadThresholdHasBeenSet) { payload.WithDouble("LoadThreshold", m_loadThreshold); } if(m_alarmsHasBeenSet) { Array<JsonValue> alarmsJsonList(m_alarms.size()); for(unsigned alarmsIndex = 0; alarmsIndex < alarmsJsonList.GetLength(); ++alarmsIndex) { alarmsJsonList[alarmsIndex].AsString(m_alarms[alarmsIndex]); } payload.WithArray("Alarms", std::move(alarmsJsonList)); } return payload; }
JsonValue PlayerSession::Jsonize() const { JsonValue payload; if(m_playerSessionIdHasBeenSet) { payload.WithString("PlayerSessionId", m_playerSessionId); } if(m_playerIdHasBeenSet) { payload.WithString("PlayerId", m_playerId); } if(m_gameSessionIdHasBeenSet) { payload.WithString("GameSessionId", m_gameSessionId); } if(m_fleetIdHasBeenSet) { payload.WithString("FleetId", m_fleetId); } if(m_creationTimeHasBeenSet) { payload.WithDouble("CreationTime", m_creationTime); } if(m_terminationTimeHasBeenSet) { payload.WithDouble("TerminationTime", m_terminationTime); } if(m_statusHasBeenSet) { payload.WithString("Status", PlayerSessionStatusMapper::GetNameForPlayerSessionStatus(m_status)); } if(m_ipAddressHasBeenSet) { payload.WithString("IpAddress", m_ipAddress); } return payload; }
JsonValue Deployment::Jsonize() const { JsonValue payload; if(m_idHasBeenSet) { payload.WithString("id", m_id); } if(m_statusHasBeenSet) { payload.WithString("status", m_status); } if(m_taskDefinitionHasBeenSet) { payload.WithString("taskDefinition", m_taskDefinition); } if(m_desiredCountHasBeenSet) { payload.WithInteger("desiredCount", m_desiredCount); } if(m_pendingCountHasBeenSet) { payload.WithInteger("pendingCount", m_pendingCount); } if(m_runningCountHasBeenSet) { payload.WithInteger("runningCount", m_runningCount); } if(m_createdAtHasBeenSet) { payload.WithDouble("createdAt", m_createdAt.SecondsWithMSPrecision()); } if(m_updatedAtHasBeenSet) { payload.WithDouble("updatedAt", m_updatedAt.SecondsWithMSPrecision()); } return payload; }
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(); }
JsonValue Credentials::Jsonize() const { JsonValue payload; if(m_accessKeyIdHasBeenSet) { payload.WithString("AccessKeyId", m_accessKeyId); } if(m_secretKeyHasBeenSet) { payload.WithString("SecretKey", m_secretKey); } if(m_sessionTokenHasBeenSet) { payload.WithString("SessionToken", m_sessionToken); } if(m_expirationHasBeenSet) { payload.WithDouble("Expiration", m_expiration.SecondsWithMSPrecision()); } return payload; }
JsonValue OfferingTransaction::Jsonize() const { JsonValue payload; if(m_offeringStatusHasBeenSet) { payload.WithObject("offeringStatus", m_offeringStatus.Jsonize()); } if(m_transactionIdHasBeenSet) { payload.WithString("transactionId", m_transactionId); } if(m_createdOnHasBeenSet) { payload.WithDouble("createdOn", m_createdOn.SecondsWithMSPrecision()); } if(m_costHasBeenSet) { payload.WithObject("cost", m_cost.Jsonize()); } return payload; }
JsonValue CurrentRevision::Jsonize() const { JsonValue payload; if(m_revisionHasBeenSet) { payload.WithString("revision", m_revision); } if(m_changeIdentifierHasBeenSet) { payload.WithString("changeIdentifier", m_changeIdentifier); } if(m_createdHasBeenSet) { payload.WithDouble("created", m_created.SecondsWithMSPrecision()); } if(m_revisionSummaryHasBeenSet) { payload.WithString("revisionSummary", m_revisionSummary); } return payload; }
Aws::String CreateActivationRequest::SerializePayload() const { JsonValue payload; if(m_descriptionHasBeenSet) { payload.WithString("Description", m_description); } if(m_defaultInstanceNameHasBeenSet) { payload.WithString("DefaultInstanceName", m_defaultInstanceName); } if(m_iamRoleHasBeenSet) { payload.WithString("IamRole", m_iamRole); } if(m_registrationLimitHasBeenSet) { payload.WithInteger("RegistrationLimit", m_registrationLimit); } if(m_expirationDateHasBeenSet) { payload.WithDouble("ExpirationDate", m_expirationDate.SecondsWithMSPrecision()); } return payload.WriteReadable(); }
JsonValue ResourceIdentifier::Jsonize() const { JsonValue payload; if(m_resourceTypeHasBeenSet) { payload.WithString("resourceType", ResourceTypeMapper::GetNameForResourceType(m_resourceType)); } if(m_resourceIdHasBeenSet) { payload.WithString("resourceId", m_resourceId); } if(m_resourceNameHasBeenSet) { payload.WithString("resourceName", m_resourceName); } if(m_resourceDeletionTimeHasBeenSet) { payload.WithDouble("resourceDeletionTime", m_resourceDeletionTime.SecondsWithMSPrecision()); } return payload; }
Aws::String RestoreTableToPointInTimeRequest::SerializePayload() const { JsonValue payload; if(m_sourceTableNameHasBeenSet) { payload.WithString("SourceTableName", m_sourceTableName); } if(m_targetTableNameHasBeenSet) { payload.WithString("TargetTableName", m_targetTableName); } if(m_useLatestRestorableTimeHasBeenSet) { payload.WithBool("UseLatestRestorableTime", m_useLatestRestorableTime); } if(m_restoreDateTimeHasBeenSet) { payload.WithDouble("RestoreDateTime", m_restoreDateTime.SecondsWithMSPrecision()); } return payload.View().WriteReadable(); }
JsonValue TimestampRange::Jsonize() const { JsonValue payload; if(m_minimumHasBeenSet) { payload.WithDouble("minimum", m_minimum.SecondsWithMSPrecision()); } if(m_maximumHasBeenSet) { payload.WithDouble("maximum", m_maximum.SecondsWithMSPrecision()); } return payload; }
JsonValue RecordPatch::Jsonize() const { JsonValue payload; if(m_opHasBeenSet) { payload.WithString("Op", OperationMapper::GetNameForOperation(m_op)); } if(m_keyHasBeenSet) { payload.WithString("Key", m_key); } if(m_valueHasBeenSet) { payload.WithString("Value", m_value); } if(m_syncCountHasBeenSet) { payload.WithInt64("SyncCount", m_syncCount); } if(m_deviceLastModifiedDateHasBeenSet) { payload.WithDouble("DeviceLastModifiedDate", m_deviceLastModifiedDate.SecondsWithMSPrecision()); } return payload; }
JsonValue RefreshSchemasStatus::Jsonize() const { JsonValue payload; if(m_endpointArnHasBeenSet) { payload.WithString("EndpointArn", m_endpointArn); } if(m_replicationInstanceArnHasBeenSet) { payload.WithString("ReplicationInstanceArn", m_replicationInstanceArn); } if(m_statusHasBeenSet) { payload.WithString("Status", RefreshSchemasStatusTypeValueMapper::GetNameForRefreshSchemasStatusTypeValue(m_status)); } if(m_lastRefreshDateHasBeenSet) { payload.WithDouble("LastRefreshDate", m_lastRefreshDate.SecondsWithMSPrecision()); } if(m_lastFailureMessageHasBeenSet) { payload.WithString("LastFailureMessage", m_lastFailureMessage); } return payload; }
JsonValue TransitionState::Jsonize() const { JsonValue payload; if(m_enabledHasBeenSet) { payload.WithBool("enabled", m_enabled); } if(m_lastChangedByHasBeenSet) { payload.WithString("lastChangedBy", m_lastChangedBy); } if(m_lastChangedAtHasBeenSet) { payload.WithDouble("lastChangedAt", m_lastChangedAt.SecondsWithMSPrecision()); } if(m_disabledReasonHasBeenSet) { payload.WithString("disabledReason", m_disabledReason); } return payload; }