void VolumeAttachment::OutputToStream(Aws::OStream& oStream, const char* location) const { if(m_volumeIdHasBeenSet) { oStream << location << ".VolumeId=" << StringUtils::URLEncode(m_volumeId.c_str()) << "&"; } if(m_instanceIdHasBeenSet) { oStream << location << ".InstanceId=" << StringUtils::URLEncode(m_instanceId.c_str()) << "&"; } if(m_deviceHasBeenSet) { oStream << location << ".Device=" << StringUtils::URLEncode(m_device.c_str()) << "&"; } if(m_stateHasBeenSet) { oStream << location << ".State=" << VolumeAttachmentStateMapper::GetNameForVolumeAttachmentState(m_state) << "&"; } if(m_attachTimeHasBeenSet) { oStream << location << ".AttachTime=" << StringUtils::URLEncode(m_attachTime.ToGmtString(DateFormat::ISO_8601).c_str()) << "&"; } if(m_deleteOnTerminationHasBeenSet) { oStream << location << ".DeleteOnTermination=" << m_deleteOnTermination << "&"; } if(m_responseMetadataHasBeenSet) { Aws::String responseMetadataLocationAndMember(location); responseMetadataLocationAndMember += ".ResponseMetadata"; m_responseMetadata.OutputToStream(oStream, responseMetadataLocationAndMember.c_str()); } }
void Snapshot::OutputToStream(Aws::OStream& oStream, const char* location) const { if(m_snapshotIdHasBeenSet) { oStream << location << ".SnapshotId=" << StringUtils::URLEncode(m_snapshotId.c_str()) << "&"; } if(m_volumeIdHasBeenSet) { oStream << location << ".VolumeId=" << StringUtils::URLEncode(m_volumeId.c_str()) << "&"; } if(m_stateHasBeenSet) { oStream << location << ".State=" << SnapshotStateMapper::GetNameForSnapshotState(m_state) << "&"; } if(m_stateMessageHasBeenSet) { oStream << location << ".StateMessage=" << StringUtils::URLEncode(m_stateMessage.c_str()) << "&"; } if(m_startTimeHasBeenSet) { oStream << location << ".StartTime=" << StringUtils::URLEncode(m_startTime.ToGmtString(DateFormat::ISO_8601).c_str()) << "&"; } if(m_progressHasBeenSet) { oStream << location << ".Progress=" << StringUtils::URLEncode(m_progress.c_str()) << "&"; } if(m_ownerIdHasBeenSet) { oStream << location << ".OwnerId=" << StringUtils::URLEncode(m_ownerId.c_str()) << "&"; } if(m_descriptionHasBeenSet) { oStream << location << ".Description=" << StringUtils::URLEncode(m_description.c_str()) << "&"; } if(m_volumeSizeHasBeenSet) { oStream << location << ".VolumeSize=" << m_volumeSize << "&"; } if(m_ownerAliasHasBeenSet) { oStream << location << ".OwnerAlias=" << StringUtils::URLEncode(m_ownerAlias.c_str()) << "&"; } if(m_tagsHasBeenSet) { unsigned tagsIdx = 1; for(auto& item : m_tags) { Aws::StringStream tagsSs; tagsSs << location << ".TagSet." << tagsIdx++; item.OutputToStream(oStream, tagsSs.str().c_str()); } } if(m_encryptedHasBeenSet) { oStream << location << ".Encrypted=" << std::boolalpha << m_encrypted << "&"; } if(m_kmsKeyIdHasBeenSet) { oStream << location << ".KmsKeyId=" << StringUtils::URLEncode(m_kmsKeyId.c_str()) << "&"; } if(m_dataEncryptionKeyIdHasBeenSet) { oStream << location << ".DataEncryptionKeyId=" << StringUtils::URLEncode(m_dataEncryptionKeyId.c_str()) << "&"; } if(m_responseMetadataHasBeenSet) { Aws::String responseMetadataLocationAndMember(location); responseMetadataLocationAndMember += ".ResponseMetadata"; m_responseMetadata.OutputToStream(oStream, responseMetadataLocationAndMember.c_str()); } }