Aws::String DescribeTrustsRequest::SerializePayload() const { JsonValue payload; if(m_directoryIdHasBeenSet) { payload.WithString("DirectoryId", m_directoryId); } if(m_trustIdsHasBeenSet) { Array<JsonValue> trustIdsJsonList(m_trustIds.size()); for(unsigned trustIdsIndex = 0; trustIdsIndex < trustIdsJsonList.GetLength(); ++trustIdsIndex) { trustIdsJsonList[trustIdsIndex].AsString(m_trustIds[trustIdsIndex]); } payload.WithArray("TrustIds", std::move(trustIdsJsonList)); } if(m_nextTokenHasBeenSet) { payload.WithString("NextToken", m_nextToken); } if(m_limitHasBeenSet) { payload.WithInteger("Limit", m_limit); } return payload.View().WriteReadable(); }
Aws::String DescribeImagePermissionsRequest::SerializePayload() const { JsonValue payload; if(m_nameHasBeenSet) { payload.WithString("Name", m_name); } if(m_maxResultsHasBeenSet) { payload.WithInteger("MaxResults", m_maxResults); } if(m_sharedAwsAccountIdsHasBeenSet) { Array<JsonValue> sharedAwsAccountIdsJsonList(m_sharedAwsAccountIds.size()); for(unsigned sharedAwsAccountIdsIndex = 0; sharedAwsAccountIdsIndex < sharedAwsAccountIdsJsonList.GetLength(); ++sharedAwsAccountIdsIndex) { sharedAwsAccountIdsJsonList[sharedAwsAccountIdsIndex].AsString(m_sharedAwsAccountIds[sharedAwsAccountIdsIndex]); } payload.WithArray("SharedAwsAccountIds", std::move(sharedAwsAccountIdsJsonList)); } if(m_nextTokenHasBeenSet) { payload.WithString("NextToken", m_nextToken); } return payload.View().WriteReadable(); }
Aws::String AdminUpdateAuthEventFeedbackRequest::SerializePayload() const { JsonValue payload; if(m_userPoolIdHasBeenSet) { payload.WithString("UserPoolId", m_userPoolId); } if(m_usernameHasBeenSet) { payload.WithString("Username", m_username); } if(m_eventIdHasBeenSet) { payload.WithString("EventId", m_eventId); } if(m_feedbackValueHasBeenSet) { payload.WithString("FeedbackValue", FeedbackValueTypeMapper::GetNameForFeedbackValueType(m_feedbackValue)); } return payload.View().WriteReadable(); }
Aws::String DescribeJobQueuesRequest::SerializePayload() const { JsonValue payload; if(m_jobQueuesHasBeenSet) { Array<JsonValue> jobQueuesJsonList(m_jobQueues.size()); for(unsigned jobQueuesIndex = 0; jobQueuesIndex < jobQueuesJsonList.GetLength(); ++jobQueuesIndex) { jobQueuesJsonList[jobQueuesIndex].AsString(m_jobQueues[jobQueuesIndex]); } payload.WithArray("jobQueues", std::move(jobQueuesJsonList)); } if(m_maxResultsHasBeenSet) { payload.WithInteger("maxResults", m_maxResults); } if(m_nextTokenHasBeenSet) { payload.WithString("nextToken", m_nextToken); } return payload.View().WriteReadable(); }
Aws::String CreateDevicePoolRequest::SerializePayload() const { JsonValue payload; if(m_projectArnHasBeenSet) { payload.WithString("projectArn", m_projectArn); } if(m_nameHasBeenSet) { payload.WithString("name", m_name); } if(m_descriptionHasBeenSet) { payload.WithString("description", m_description); } if(m_rulesHasBeenSet) { Array<JsonValue> rulesJsonList(m_rules.size()); for(unsigned rulesIndex = 0; rulesIndex < rulesJsonList.GetLength(); ++rulesIndex) { rulesJsonList[rulesIndex].AsObject(m_rules[rulesIndex].Jsonize()); } payload.WithArray("rules", std::move(rulesJsonList)); } return payload.View().WriteReadable(); }
Aws::String DescribeSharedDirectoriesRequest::SerializePayload() const { JsonValue payload; if(m_ownerDirectoryIdHasBeenSet) { payload.WithString("OwnerDirectoryId", m_ownerDirectoryId); } if(m_sharedDirectoryIdsHasBeenSet) { Array<JsonValue> sharedDirectoryIdsJsonList(m_sharedDirectoryIds.size()); for(unsigned sharedDirectoryIdsIndex = 0; sharedDirectoryIdsIndex < sharedDirectoryIdsJsonList.GetLength(); ++sharedDirectoryIdsIndex) { sharedDirectoryIdsJsonList[sharedDirectoryIdsIndex].AsString(m_sharedDirectoryIds[sharedDirectoryIdsIndex]); } payload.WithArray("SharedDirectoryIds", std::move(sharedDirectoryIdsJsonList)); } if(m_nextTokenHasBeenSet) { payload.WithString("NextToken", m_nextToken); } if(m_limitHasBeenSet) { payload.WithInteger("Limit", m_limit); } return payload.View().WriteReadable(); }
Aws::String CreatePermissionRequest::SerializePayload() const { JsonValue payload; if(m_certificateAuthorityArnHasBeenSet) { payload.WithString("CertificateAuthorityArn", m_certificateAuthorityArn); } if(m_principalHasBeenSet) { payload.WithString("Principal", m_principal); } if(m_sourceAccountHasBeenSet) { payload.WithString("SourceAccount", m_sourceAccount); } if(m_actionsHasBeenSet) { Array<JsonValue> actionsJsonList(m_actions.size()); for(unsigned actionsIndex = 0; actionsIndex < actionsJsonList.GetLength(); ++actionsIndex) { actionsJsonList[actionsIndex].AsString(ActionTypeMapper::GetNameForActionType(m_actions[actionsIndex])); } payload.WithArray("Actions", std::move(actionsJsonList)); } return payload.View().WriteReadable(); }
Aws::String SetStatusRequest::SerializePayload() const { JsonValue payload; if(m_pipelineIdHasBeenSet) { payload.WithString("pipelineId", m_pipelineId); } if(m_objectIdsHasBeenSet) { Array<JsonValue> objectIdsJsonList(m_objectIds.size()); for(unsigned objectIdsIndex = 0; objectIdsIndex < objectIdsJsonList.GetLength(); ++objectIdsIndex) { objectIdsJsonList[objectIdsIndex].AsString(m_objectIds[objectIdsIndex]); } payload.WithArray("objectIds", std::move(objectIdsJsonList)); } if(m_statusHasBeenSet) { payload.WithString("status", m_status); } return payload.View().WriteReadable(); }
Aws::String ListUsersInGroupRequest::SerializePayload() const { JsonValue payload; if(m_userPoolIdHasBeenSet) { payload.WithString("UserPoolId", m_userPoolId); } if(m_groupNameHasBeenSet) { payload.WithString("GroupName", m_groupName); } if(m_limitHasBeenSet) { payload.WithInteger("Limit", m_limit); } if(m_nextTokenHasBeenSet) { payload.WithString("NextToken", m_nextToken); } return payload.View().WriteReadable(); }
Aws::String UnlinkDeveloperIdentityRequest::SerializePayload() const { JsonValue payload; if(m_identityIdHasBeenSet) { payload.WithString("IdentityId", m_identityId); } if(m_identityPoolIdHasBeenSet) { payload.WithString("IdentityPoolId", m_identityPoolId); } if(m_developerProviderNameHasBeenSet) { payload.WithString("DeveloperProviderName", m_developerProviderName); } if(m_developerUserIdentifierHasBeenSet) { payload.WithString("DeveloperUserIdentifier", m_developerUserIdentifier); } return payload.View().WriteReadable(); }
Aws::String CreateScalingPlanRequest::SerializePayload() const { JsonValue payload; if(m_scalingPlanNameHasBeenSet) { payload.WithString("ScalingPlanName", m_scalingPlanName); } if(m_applicationSourceHasBeenSet) { payload.WithObject("ApplicationSource", m_applicationSource.Jsonize()); } if(m_scalingInstructionsHasBeenSet) { Array<JsonValue> scalingInstructionsJsonList(m_scalingInstructions.size()); for(unsigned scalingInstructionsIndex = 0; scalingInstructionsIndex < scalingInstructionsJsonList.GetLength(); ++scalingInstructionsIndex) { scalingInstructionsJsonList[scalingInstructionsIndex].AsObject(m_scalingInstructions[scalingInstructionsIndex].Jsonize()); } payload.WithArray("ScalingInstructions", std::move(scalingInstructionsJsonList)); } return payload.View().WriteReadable(); }
Aws::String GetCredentialsForIdentityRequest::SerializePayload() const { JsonValue payload; if(m_identityIdHasBeenSet) { payload.WithString("IdentityId", m_identityId); } if(m_loginsHasBeenSet) { JsonValue loginsJsonMap; for(auto& loginsItem : m_logins) { loginsJsonMap.WithString(loginsItem.first, loginsItem.second); } payload.WithObject("Logins", std::move(loginsJsonMap)); } if(m_customRoleArnHasBeenSet) { payload.WithString("CustomRoleArn", m_customRoleArn); } return payload.View().WriteReadable(); }
Aws::String DescribeContinuousExportsRequest::SerializePayload() const { JsonValue payload; if(m_exportIdsHasBeenSet) { Array<JsonValue> exportIdsJsonList(m_exportIds.size()); for(unsigned exportIdsIndex = 0; exportIdsIndex < exportIdsJsonList.GetLength(); ++exportIdsIndex) { exportIdsJsonList[exportIdsIndex].AsString(m_exportIds[exportIdsIndex]); } payload.WithArray("exportIds", std::move(exportIdsJsonList)); } if(m_maxResultsHasBeenSet) { payload.WithInteger("maxResults", m_maxResults); } if(m_nextTokenHasBeenSet) { payload.WithString("nextToken", m_nextToken); } return payload.View().WriteReadable(); }
Aws::String UpdateConferenceProviderRequest::SerializePayload() const { JsonValue payload; if(m_conferenceProviderArnHasBeenSet) { payload.WithString("ConferenceProviderArn", m_conferenceProviderArn); } if(m_conferenceProviderTypeHasBeenSet) { payload.WithString("ConferenceProviderType", ConferenceProviderTypeMapper::GetNameForConferenceProviderType(m_conferenceProviderType)); } if(m_iPDialInHasBeenSet) { payload.WithObject("IPDialIn", m_iPDialIn.Jsonize()); } if(m_pSTNDialInHasBeenSet) { payload.WithObject("PSTNDialIn", m_pSTNDialIn.Jsonize()); } if(m_meetingSettingHasBeenSet) { payload.WithObject("MeetingSetting", m_meetingSetting.Jsonize()); } return payload.View().WriteReadable(); }
Aws::String DeleteTagsRequest::SerializePayload() const { JsonValue payload; 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)); } if(m_tagsHasBeenSet) { Array<JsonValue> tagsJsonList(m_tags.size()); for(unsigned tagsIndex = 0; tagsIndex < tagsJsonList.GetLength(); ++tagsIndex) { tagsJsonList[tagsIndex].AsObject(m_tags[tagsIndex].Jsonize()); } payload.WithArray("tags", std::move(tagsJsonList)); } return payload.View().WriteReadable(); }
Aws::String PutGatewayResponseRequest::SerializePayload() const { JsonValue payload; if(m_statusCodeHasBeenSet) { payload.WithString("statusCode", m_statusCode); } if(m_responseParametersHasBeenSet) { JsonValue responseParametersJsonMap; for(auto& responseParametersItem : m_responseParameters) { responseParametersJsonMap.WithString(responseParametersItem.first, responseParametersItem.second); } payload.WithObject("responseParameters", std::move(responseParametersJsonMap)); } if(m_responseTemplatesHasBeenSet) { JsonValue responseTemplatesJsonMap; for(auto& responseTemplatesItem : m_responseTemplates) { responseTemplatesJsonMap.WithString(responseTemplatesItem.first, responseTemplatesItem.second); } payload.WithObject("responseTemplates", std::move(responseTemplatesJsonMap)); } return payload.View().WriteReadable(); }
Aws::String ListOnPremisesInstancesRequest::SerializePayload() const { JsonValue payload; if(m_registrationStatusHasBeenSet) { payload.WithString("registrationStatus", RegistrationStatusMapper::GetNameForRegistrationStatus(m_registrationStatus)); } if(m_tagFiltersHasBeenSet) { Array<JsonValue> tagFiltersJsonList(m_tagFilters.size()); for(unsigned tagFiltersIndex = 0; tagFiltersIndex < tagFiltersJsonList.GetLength(); ++tagFiltersIndex) { tagFiltersJsonList[tagFiltersIndex].AsObject(m_tagFilters[tagFiltersIndex].Jsonize()); } payload.WithArray("tagFilters", std::move(tagFiltersJsonList)); } if(m_nextTokenHasBeenSet) { payload.WithString("nextToken", m_nextToken); } return payload.View().WriteReadable(); }
Aws::String CreatePipelineRequest::SerializePayload() const { JsonValue payload; if(m_nameHasBeenSet) { payload.WithString("name", m_name); } if(m_uniqueIdHasBeenSet) { payload.WithString("uniqueId", m_uniqueId); } if(m_descriptionHasBeenSet) { payload.WithString("description", m_description); } if(m_tagsHasBeenSet) { Array<JsonValue> tagsJsonList(m_tags.size()); for(unsigned tagsIndex = 0; tagsIndex < tagsJsonList.GetLength(); ++tagsIndex) { tagsJsonList[tagsIndex].AsObject(m_tags[tagsIndex].Jsonize()); } payload.WithArray("tags", std::move(tagsJsonList)); } return payload.View().WriteReadable(); }
Aws::String DescribeReplicationTasksRequest::SerializePayload() const { JsonValue payload; 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_maxRecordsHasBeenSet) { payload.WithInteger("MaxRecords", m_maxRecords); } if(m_markerHasBeenSet) { payload.WithString("Marker", m_marker); } return payload.View().WriteReadable(); }
Aws::String SetUserPoolMfaConfigRequest::SerializePayload() const { JsonValue payload; if(m_userPoolIdHasBeenSet) { payload.WithString("UserPoolId", m_userPoolId); } if(m_smsMfaConfigurationHasBeenSet) { payload.WithObject("SmsMfaConfiguration", m_smsMfaConfiguration.Jsonize()); } if(m_softwareTokenMfaConfigurationHasBeenSet) { payload.WithObject("SoftwareTokenMfaConfiguration", m_softwareTokenMfaConfiguration.Jsonize()); } if(m_mfaConfigurationHasBeenSet) { payload.WithString("MfaConfiguration", UserPoolMfaTypeMapper::GetNameForUserPoolMfaType(m_mfaConfiguration)); } return payload.View().WriteReadable(); }
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(); }
Aws::String UpdateUserProfileRequest::SerializePayload() const { JsonValue payload; if(m_userArnHasBeenSet) { payload.WithString("userArn", m_userArn); } if(m_displayNameHasBeenSet) { payload.WithString("displayName", m_displayName); } if(m_emailAddressHasBeenSet) { payload.WithString("emailAddress", m_emailAddress); } if(m_sshPublicKeyHasBeenSet) { payload.WithString("sshPublicKey", m_sshPublicKey); } return payload.View().WriteReadable(); }
Aws::String CreateDomainNameRequest::SerializePayload() const { JsonValue payload; if(m_domainNameHasBeenSet) { payload.WithString("domainName", m_domainName); } if(m_certificateNameHasBeenSet) { payload.WithString("certificateName", m_certificateName); } if(m_certificateBodyHasBeenSet) { payload.WithString("certificateBody", m_certificateBody); } if(m_certificatePrivateKeyHasBeenSet) { payload.WithString("certificatePrivateKey", m_certificatePrivateKey); } if(m_certificateChainHasBeenSet) { payload.WithString("certificateChain", m_certificateChain); } if(m_certificateArnHasBeenSet) { payload.WithString("certificateArn", m_certificateArn); } if(m_regionalCertificateNameHasBeenSet) { payload.WithString("regionalCertificateName", m_regionalCertificateName); } if(m_regionalCertificateArnHasBeenSet) { payload.WithString("regionalCertificateArn", m_regionalCertificateArn); } if(m_endpointConfigurationHasBeenSet) { payload.WithObject("endpointConfiguration", m_endpointConfiguration.Jsonize()); } return payload.View().WriteReadable(); }
Aws::String BatchDeleteImageRequest::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)); } return payload.View().WriteReadable(); }
Aws::String AdminUpdateUserAttributesRequest::SerializePayload() const { JsonValue payload; if(m_userPoolIdHasBeenSet) { payload.WithString("UserPoolId", m_userPoolId); } if(m_usernameHasBeenSet) { payload.WithString("Username", m_username); } if(m_userAttributesHasBeenSet) { Array<JsonValue> userAttributesJsonList(m_userAttributes.size()); for(unsigned userAttributesIndex = 0; userAttributesIndex < userAttributesJsonList.GetLength(); ++userAttributesIndex) { userAttributesJsonList[userAttributesIndex].AsObject(m_userAttributes[userAttributesIndex].Jsonize()); } payload.WithArray("UserAttributes", std::move(userAttributesJsonList)); } return payload.View().WriteReadable(); }
Aws::String PutSkillAuthorizationRequest::SerializePayload() const { JsonValue payload; if(m_authorizationResultHasBeenSet) { JsonValue authorizationResultJsonMap; for(auto& authorizationResultItem : m_authorizationResult) { authorizationResultJsonMap.WithString(authorizationResultItem.first, authorizationResultItem.second); } payload.WithObject("AuthorizationResult", std::move(authorizationResultJsonMap)); } if(m_skillIdHasBeenSet) { payload.WithString("SkillId", m_skillId); } if(m_roomArnHasBeenSet) { payload.WithString("RoomArn", m_roomArn); } return payload.View().WriteReadable(); }
Aws::String CreateFacetRequest::SerializePayload() const { JsonValue payload; if(m_nameHasBeenSet) { payload.WithString("Name", m_name); } if(m_attributesHasBeenSet) { Array<JsonValue> attributesJsonList(m_attributes.size()); for(unsigned attributesIndex = 0; attributesIndex < attributesJsonList.GetLength(); ++attributesIndex) { attributesJsonList[attributesIndex].AsObject(m_attributes[attributesIndex].Jsonize()); } payload.WithArray("Attributes", std::move(attributesJsonList)); } if(m_objectTypeHasBeenSet) { payload.WithString("ObjectType", ObjectTypeMapper::GetNameForObjectType(m_objectType)); } if(m_facetStyleHasBeenSet) { payload.WithString("FacetStyle", FacetStyleMapper::GetNameForFacetStyle(m_facetStyle)); } return payload.View().WriteReadable(); }
Aws::String MergeDeveloperIdentitiesRequest::SerializePayload() const { JsonValue payload; if(m_sourceUserIdentifierHasBeenSet) { payload.WithString("SourceUserIdentifier", m_sourceUserIdentifier); } if(m_destinationUserIdentifierHasBeenSet) { payload.WithString("DestinationUserIdentifier", m_destinationUserIdentifier); } if(m_developerProviderNameHasBeenSet) { payload.WithString("DeveloperProviderName", m_developerProviderName); } if(m_identityPoolIdHasBeenSet) { payload.WithString("IdentityPoolId", m_identityPoolId); } return payload.View().WriteReadable(); }
Aws::String PutFileRequest::SerializePayload() const { JsonValue payload; if(m_repositoryNameHasBeenSet) { payload.WithString("repositoryName", m_repositoryName); } if(m_branchNameHasBeenSet) { payload.WithString("branchName", m_branchName); } if(m_fileContentHasBeenSet) { payload.WithString("fileContent", HashingUtils::Base64Encode(m_fileContent)); } if(m_filePathHasBeenSet) { payload.WithString("filePath", m_filePath); } if(m_fileModeHasBeenSet) { payload.WithString("fileMode", FileModeTypeEnumMapper::GetNameForFileModeTypeEnum(m_fileMode)); } if(m_parentCommitIdHasBeenSet) { payload.WithString("parentCommitId", m_parentCommitId); } if(m_commitMessageHasBeenSet) { payload.WithString("commitMessage", m_commitMessage); } if(m_nameHasBeenSet) { payload.WithString("name", m_name); } if(m_emailHasBeenSet) { payload.WithString("email", m_email); } return payload.View().WriteReadable(); }
Aws::String RegisterContainerInstanceRequest::SerializePayload() const { JsonValue payload; if(m_clusterHasBeenSet) { payload.WithString("cluster", m_cluster); } if(m_instanceIdentityDocumentHasBeenSet) { payload.WithString("instanceIdentityDocument", m_instanceIdentityDocument); } if(m_instanceIdentityDocumentSignatureHasBeenSet) { payload.WithString("instanceIdentityDocumentSignature", m_instanceIdentityDocumentSignature); } if(m_totalResourcesHasBeenSet) { Array<JsonValue> totalResourcesJsonList(m_totalResources.size()); for(unsigned totalResourcesIndex = 0; totalResourcesIndex < totalResourcesJsonList.GetLength(); ++totalResourcesIndex) { totalResourcesJsonList[totalResourcesIndex].AsObject(m_totalResources[totalResourcesIndex].Jsonize()); } payload.WithArray("totalResources", std::move(totalResourcesJsonList)); } if(m_versionInfoHasBeenSet) { payload.WithObject("versionInfo", m_versionInfo.Jsonize()); } if(m_containerInstanceArnHasBeenSet) { payload.WithString("containerInstanceArn", m_containerInstanceArn); } if(m_attributesHasBeenSet) { Array<JsonValue> attributesJsonList(m_attributes.size()); for(unsigned attributesIndex = 0; attributesIndex < attributesJsonList.GetLength(); ++attributesIndex) { attributesJsonList[attributesIndex].AsObject(m_attributes[attributesIndex].Jsonize()); } payload.WithArray("attributes", std::move(attributesJsonList)); } return payload.View().WriteReadable(); }