void IamInstanceProfileAssociation::OutputToStream(Aws::OStream& oStream, const char* location) const { if(m_associationIdHasBeenSet) { oStream << location << ".AssociationId=" << StringUtils::URLEncode(m_associationId.c_str()) << "&"; } if(m_instanceIdHasBeenSet) { oStream << location << ".InstanceId=" << StringUtils::URLEncode(m_instanceId.c_str()) << "&"; } if(m_iamInstanceProfileHasBeenSet) { Aws::String iamInstanceProfileLocationAndMember(location); iamInstanceProfileLocationAndMember += ".IamInstanceProfile"; m_iamInstanceProfile.OutputToStream(oStream, iamInstanceProfileLocationAndMember.c_str()); } if(m_stateHasBeenSet) { oStream << location << ".State=" << IamInstanceProfileAssociationStateMapper::GetNameForIamInstanceProfileAssociationState(m_state) << "&"; } if(m_timestampHasBeenSet) { oStream << location << ".Timestamp=" << StringUtils::URLEncode(m_timestamp.ToGmtString(DateFormat::ISO_8601).c_str()) << "&"; } }
void LaunchSpecification::OutputToStream(Aws::OStream& oStream, const char* location) const { if(m_imageIdHasBeenSet) { oStream << location << ".ImageId=" << StringUtils::URLEncode(m_imageId.c_str()) << "&"; } if(m_keyNameHasBeenSet) { oStream << location << ".KeyName=" << StringUtils::URLEncode(m_keyName.c_str()) << "&"; } if(m_securityGroupsHasBeenSet) { unsigned securityGroupsIdx = 1; for(auto& item : m_securityGroups) { Aws::StringStream securityGroupsSs; securityGroupsSs << location << ".item." << securityGroupsIdx++; item.OutputToStream(oStream, securityGroupsSs.str().c_str()); } } if(m_userDataHasBeenSet) { oStream << location << ".UserData=" << StringUtils::URLEncode(m_userData.c_str()) << "&"; } if(m_addressingTypeHasBeenSet) { oStream << location << ".AddressingType=" << StringUtils::URLEncode(m_addressingType.c_str()) << "&"; } if(m_instanceTypeHasBeenSet) { oStream << location << ".InstanceType=" << InstanceTypeMapper::GetNameForInstanceType(m_instanceType) << "&"; } if(m_placementHasBeenSet) { Aws::String placementLocationAndMember(location); placementLocationAndMember += ".Placement"; m_placement.OutputToStream(oStream, placementLocationAndMember.c_str()); } if(m_kernelIdHasBeenSet) { oStream << location << ".KernelId=" << StringUtils::URLEncode(m_kernelId.c_str()) << "&"; } if(m_ramdiskIdHasBeenSet) { oStream << location << ".RamdiskId=" << StringUtils::URLEncode(m_ramdiskId.c_str()) << "&"; } if(m_blockDeviceMappingsHasBeenSet) { unsigned blockDeviceMappingsIdx = 1; for(auto& item : m_blockDeviceMappings) { Aws::StringStream blockDeviceMappingsSs; blockDeviceMappingsSs << location << ".item." << blockDeviceMappingsIdx++; item.OutputToStream(oStream, blockDeviceMappingsSs.str().c_str()); } } if(m_subnetIdHasBeenSet) { oStream << location << ".SubnetId=" << StringUtils::URLEncode(m_subnetId.c_str()) << "&"; } if(m_networkInterfacesHasBeenSet) { unsigned networkInterfacesIdx = 1; for(auto& item : m_networkInterfaces) { Aws::StringStream networkInterfacesSs; networkInterfacesSs << location << ".item." << networkInterfacesIdx++; item.OutputToStream(oStream, networkInterfacesSs.str().c_str()); } } if(m_iamInstanceProfileHasBeenSet) { Aws::String iamInstanceProfileLocationAndMember(location); iamInstanceProfileLocationAndMember += ".IamInstanceProfile"; m_iamInstanceProfile.OutputToStream(oStream, iamInstanceProfileLocationAndMember.c_str()); } if(m_ebsOptimizedHasBeenSet) { oStream << location << ".EbsOptimized=" << m_ebsOptimized << "&"; } if(m_monitoringHasBeenSet) { Aws::String monitoringLocationAndMember(location); monitoringLocationAndMember += ".Monitoring"; m_monitoring.OutputToStream(oStream, monitoringLocationAndMember.c_str()); } }