public static TagUnmarshaller GetInstance() { if (instance == null) { instance = new TagUnmarshaller(); } return(instance); }
public InternetGateway Unmarshall(XmlUnmarshallerContext context) { InternetGateway internetGateway = new InternetGateway(); int originalDepth = context.CurrentDepth; int targetDepth = originalDepth + 1; if (context.IsStartOfDocument) { targetDepth += 1; } while (context.Read()) { if (context.IsStartElement || context.IsAttribute) { if (context.TestExpression("internetGatewayId", targetDepth)) { internetGateway.InternetGatewayId = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("attachmentSet/item", targetDepth)) { internetGateway.Attachments.Add(InternetGatewayAttachmentUnmarshaller.GetInstance().Unmarshall(context)); continue; } if (context.TestExpression("tagSet/item", targetDepth)) { internetGateway.Tags.Add(TagUnmarshaller.GetInstance().Unmarshall(context)); continue; } } else if (context.IsEndElement && context.CurrentDepth < originalDepth) { return(internetGateway); } } return(internetGateway); }
public DhcpOptions Unmarshall(XmlUnmarshallerContext context) { DhcpOptions dhcpOptions = new DhcpOptions(); int originalDepth = context.CurrentDepth; int targetDepth = originalDepth + 1; if (context.IsStartOfDocument) { targetDepth += 1; } while (context.Read()) { if (context.IsStartElement || context.IsAttribute) { if (context.TestExpression("dhcpOptionsId", targetDepth)) { dhcpOptions.DhcpOptionsId = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("dhcpConfigurationSet/item", targetDepth)) { dhcpOptions.DhcpConfigurations.Add(DhcpConfigurationUnmarshaller.GetInstance().Unmarshall(context)); continue; } if (context.TestExpression("tagSet/item", targetDepth)) { dhcpOptions.Tags.Add(TagUnmarshaller.GetInstance().Unmarshall(context)); continue; } } else if (context.IsEndElement && context.CurrentDepth < originalDepth) { return(dhcpOptions); } } return(dhcpOptions); }
public Snapshot Unmarshall(XmlUnmarshallerContext context) { Snapshot snapshot = new Snapshot(); int originalDepth = context.CurrentDepth; int targetDepth = originalDepth + 1; if (context.IsStartOfDocument) { targetDepth += 1; } while (context.Read()) { if (context.IsStartElement || context.IsAttribute) { if (context.TestExpression("snapshotId", targetDepth)) { snapshot.SnapshotId = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("volumeId", targetDepth)) { snapshot.VolumeId = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("status", targetDepth)) { snapshot.State = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("startTime", targetDepth)) { snapshot.StartTime = DateTimeUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("progress", targetDepth)) { snapshot.Progress = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("ownerId", targetDepth)) { snapshot.OwnerId = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("description", targetDepth)) { snapshot.Description = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("volumeSize", targetDepth)) { snapshot.VolumeSize = IntUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("ownerAlias", targetDepth)) { snapshot.OwnerAlias = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("tagSet/item", targetDepth)) { snapshot.Tags.Add(TagUnmarshaller.GetInstance().Unmarshall(context)); continue; } } else if (context.IsEndElement && context.CurrentDepth < originalDepth) { return(snapshot); } } return(snapshot); }
public Instance Unmarshall(XmlUnmarshallerContext context) { Instance instance = new Instance(); int originalDepth = context.CurrentDepth; int targetDepth = originalDepth + 1; if (context.IsStartOfDocument) { targetDepth += 1; } while (context.Read()) { if (context.IsStartElement || context.IsAttribute) { if (context.TestExpression("instanceId", targetDepth)) { instance.InstanceId = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("imageId", targetDepth)) { instance.ImageId = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("instanceState", targetDepth)) { instance.State = InstanceStateUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("privateDnsName", targetDepth)) { instance.PrivateDnsName = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("dnsName", targetDepth)) { instance.PublicDnsName = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("reason", targetDepth)) { instance.StateTransitionReason = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("keyName", targetDepth)) { instance.KeyName = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("amiLaunchIndex", targetDepth)) { instance.AmiLaunchIndex = IntUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("productCodes/item", targetDepth)) { instance.ProductCodes.Add(ProductCodeUnmarshaller.GetInstance().Unmarshall(context)); continue; } if (context.TestExpression("instanceType", targetDepth)) { instance.InstanceType = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("launchTime", targetDepth)) { instance.LaunchTime = DateTimeUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("placement", targetDepth)) { instance.Placement = PlacementUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("kernelId", targetDepth)) { instance.KernelId = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("ramdiskId", targetDepth)) { instance.RamdiskId = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("platform", targetDepth)) { instance.Platform = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("monitoring", targetDepth)) { instance.Monitoring = MonitoringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("subnetId", targetDepth)) { instance.SubnetId = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("vpcId", targetDepth)) { instance.VpcId = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("privateIpAddress", targetDepth)) { instance.PrivateIpAddress = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("ipAddress", targetDepth)) { instance.PublicIpAddress = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("stateReason", targetDepth)) { instance.StateReason = StateReasonUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("architecture", targetDepth)) { instance.Architecture = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("rootDeviceType", targetDepth)) { instance.RootDeviceType = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("rootDeviceName", targetDepth)) { instance.RootDeviceName = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("blockDeviceMapping/item", targetDepth)) { instance.BlockDeviceMappings.Add(InstanceBlockDeviceMappingUnmarshaller.GetInstance().Unmarshall(context)); continue; } if (context.TestExpression("virtualizationType", targetDepth)) { instance.VirtualizationType = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("instanceLifecycle", targetDepth)) { instance.InstanceLifecycle = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("spotInstanceRequestId", targetDepth)) { instance.SpotInstanceRequestId = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("clientToken", targetDepth)) { instance.ClientToken = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("tagSet/item", targetDepth)) { instance.Tags.Add(TagUnmarshaller.GetInstance().Unmarshall(context)); continue; } if (context.TestExpression("groupSet/item", targetDepth)) { instance.SecurityGroups.Add(GroupIdentifierUnmarshaller.GetInstance().Unmarshall(context)); continue; } if (context.TestExpression("sourceDestCheck", targetDepth)) { instance.SourceDestCheck = BoolUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("hypervisor", targetDepth)) { instance.Hypervisor = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("networkInterfaceSet/item", targetDepth)) { instance.NetworkInterfaces.Add(InstanceNetworkInterfaceUnmarshaller.GetInstance().Unmarshall(context)); continue; } if (context.TestExpression("iamInstanceProfile", targetDepth)) { instance.IamInstanceProfile = IamInstanceProfileUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("ebsOptimized", targetDepth)) { instance.EbsOptimized = BoolUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("sriovNetSupport", targetDepth)) { instance.SriovNetSupport = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } } else if (context.IsEndElement && context.CurrentDepth < originalDepth) { return(instance); } } return(instance); }
public ReservedInstances Unmarshall(XmlUnmarshallerContext context) { ReservedInstances reservedInstances = new ReservedInstances(); int originalDepth = context.CurrentDepth; int targetDepth = originalDepth + 1; if (context.IsStartOfDocument) { targetDepth += 1; } while (context.Read()) { if (context.IsStartElement || context.IsAttribute) { if (context.TestExpression("reservedInstancesId", targetDepth)) { reservedInstances.ReservedInstancesId = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("instanceType", targetDepth)) { reservedInstances.InstanceType = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("availabilityZone", targetDepth)) { reservedInstances.AvailabilityZone = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("start", targetDepth)) { reservedInstances.Start = DateTimeUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("end", targetDepth)) { reservedInstances.End = DateTimeUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("duration", targetDepth)) { reservedInstances.Duration = LongUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("usagePrice", targetDepth)) { reservedInstances.UsagePrice = FloatUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("fixedPrice", targetDepth)) { reservedInstances.FixedPrice = FloatUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("instanceCount", targetDepth)) { reservedInstances.InstanceCount = IntUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("productDescription", targetDepth)) { reservedInstances.ProductDescription = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("state", targetDepth)) { reservedInstances.State = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("tagSet/item", targetDepth)) { reservedInstances.Tags.Add(TagUnmarshaller.GetInstance().Unmarshall(context)); continue; } if (context.TestExpression("instanceTenancy", targetDepth)) { reservedInstances.InstanceTenancy = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("currencyCode", targetDepth)) { reservedInstances.CurrencyCode = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("offeringType", targetDepth)) { reservedInstances.OfferingType = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("recurringCharges/item", targetDepth)) { reservedInstances.RecurringCharges.Add(RecurringChargeUnmarshaller.GetInstance().Unmarshall(context)); continue; } } else if (context.IsEndElement && context.CurrentDepth < originalDepth) { return(reservedInstances); } } return(reservedInstances); }
public Volume Unmarshall(XmlUnmarshallerContext context) { Volume volume = new Volume(); int originalDepth = context.CurrentDepth; int targetDepth = originalDepth + 1; if (context.IsStartOfDocument) { targetDepth += 1; } while (context.Read()) { if (context.IsStartElement || context.IsAttribute) { if (context.TestExpression("volumeId", targetDepth)) { volume.VolumeId = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("size", targetDepth)) { volume.Size = IntUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("snapshotId", targetDepth)) { volume.SnapshotId = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("availabilityZone", targetDepth)) { volume.AvailabilityZone = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("status", targetDepth)) { volume.State = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("createTime", targetDepth)) { volume.CreateTime = DateTimeUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("attachmentSet/item", targetDepth)) { volume.Attachments.Add(VolumeAttachmentUnmarshaller.GetInstance().Unmarshall(context)); continue; } if (context.TestExpression("tagSet/item", targetDepth)) { volume.Tags.Add(TagUnmarshaller.GetInstance().Unmarshall(context)); continue; } if (context.TestExpression("volumeType", targetDepth)) { volume.VolumeType = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("iops", targetDepth)) { volume.Iops = IntUnmarshaller.GetInstance().Unmarshall(context); continue; } } else if (context.IsEndElement && context.CurrentDepth < originalDepth) { return(volume); } } return(volume); }
public SpotInstanceRequest Unmarshall(XmlUnmarshallerContext context) { SpotInstanceRequest spotInstanceRequest = new SpotInstanceRequest(); int originalDepth = context.CurrentDepth; int targetDepth = originalDepth + 1; if (context.IsStartOfDocument) { targetDepth += 1; } while (context.Read()) { if (context.IsStartElement || context.IsAttribute) { if (context.TestExpression("spotInstanceRequestId", targetDepth)) { spotInstanceRequest.SpotInstanceRequestId = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("spotPrice", targetDepth)) { spotInstanceRequest.SpotPrice = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("type", targetDepth)) { spotInstanceRequest.Type = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("state", targetDepth)) { spotInstanceRequest.State = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("fault", targetDepth)) { spotInstanceRequest.Fault = SpotInstanceStateFaultUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("status", targetDepth)) { spotInstanceRequest.Status = SpotInstanceStatusUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("validFrom", targetDepth)) { spotInstanceRequest.ValidFrom = DateTimeUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("validUntil", targetDepth)) { spotInstanceRequest.ValidUntil = DateTimeUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("launchGroup", targetDepth)) { spotInstanceRequest.LaunchGroup = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("availabilityZoneGroup", targetDepth)) { spotInstanceRequest.AvailabilityZoneGroup = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("launchSpecification", targetDepth)) { spotInstanceRequest.LaunchSpecification = LaunchSpecificationUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("instanceId", targetDepth)) { spotInstanceRequest.InstanceId = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("createTime", targetDepth)) { spotInstanceRequest.CreateTime = DateTimeUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("productDescription", targetDepth)) { spotInstanceRequest.ProductDescription = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("tagSet/item", targetDepth)) { spotInstanceRequest.Tags.Add(TagUnmarshaller.GetInstance().Unmarshall(context)); continue; } if (context.TestExpression("launchedAvailabilityZone", targetDepth)) { spotInstanceRequest.LaunchedAvailabilityZone = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } } else if (context.IsEndElement && context.CurrentDepth < originalDepth) { return(spotInstanceRequest); } } return(spotInstanceRequest); }
public CustomerGateway Unmarshall(XmlUnmarshallerContext context) { CustomerGateway customerGateway = new CustomerGateway(); int originalDepth = context.CurrentDepth; int targetDepth = originalDepth + 1; if (context.IsStartOfDocument) { targetDepth += 1; } while (context.Read()) { if (context.IsStartElement || context.IsAttribute) { if (context.TestExpression("customerGatewayId", targetDepth)) { customerGateway.CustomerGatewayId = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("state", targetDepth)) { customerGateway.State = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("type", targetDepth)) { customerGateway.Type = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("ipAddress", targetDepth)) { customerGateway.IpAddress = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("bgpAsn", targetDepth)) { customerGateway.BgpAsn = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("tagSet/item", targetDepth)) { customerGateway.Tags.Add(TagUnmarshaller.GetInstance().Unmarshall(context)); continue; } } else if (context.IsEndElement && context.CurrentDepth < originalDepth) { return(customerGateway); } } return(customerGateway); }
public NetworkAcl Unmarshall(XmlUnmarshallerContext context) { NetworkAcl networkAcl = new NetworkAcl(); int originalDepth = context.CurrentDepth; int targetDepth = originalDepth + 1; if (context.IsStartOfDocument) { targetDepth += 1; } while (context.Read()) { if (context.IsStartElement || context.IsAttribute) { if (context.TestExpression("networkAclId", targetDepth)) { networkAcl.NetworkAclId = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("vpcId", targetDepth)) { networkAcl.VpcId = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("default", targetDepth)) { networkAcl.IsDefault = BoolUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("entrySet/item", targetDepth)) { networkAcl.Entries.Add(NetworkAclEntryUnmarshaller.GetInstance().Unmarshall(context)); continue; } if (context.TestExpression("associationSet/item", targetDepth)) { networkAcl.Associations.Add(NetworkAclAssociationUnmarshaller.GetInstance().Unmarshall(context)); continue; } if (context.TestExpression("tagSet/item", targetDepth)) { networkAcl.Tags.Add(TagUnmarshaller.GetInstance().Unmarshall(context)); continue; } } else if (context.IsEndElement && context.CurrentDepth < originalDepth) { return(networkAcl); } } return(networkAcl); }
public NetworkInterface Unmarshall(XmlUnmarshallerContext context) { NetworkInterface networkInterface = new NetworkInterface(); int originalDepth = context.CurrentDepth; int targetDepth = originalDepth + 1; if (context.IsStartOfDocument) { targetDepth += 1; } while (context.Read()) { if (context.IsStartElement || context.IsAttribute) { if (context.TestExpression("networkInterfaceId", targetDepth)) { networkInterface.NetworkInterfaceId = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("subnetId", targetDepth)) { networkInterface.SubnetId = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("vpcId", targetDepth)) { networkInterface.VpcId = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("availabilityZone", targetDepth)) { networkInterface.AvailabilityZone = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("description", targetDepth)) { networkInterface.Description = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("ownerId", targetDepth)) { networkInterface.OwnerId = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("requesterId", targetDepth)) { networkInterface.RequesterId = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("requesterManaged", targetDepth)) { networkInterface.RequesterManaged = BoolUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("status", targetDepth)) { networkInterface.Status = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("macAddress", targetDepth)) { networkInterface.MacAddress = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("privateIpAddress", targetDepth)) { networkInterface.PrivateIpAddress = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("privateDnsName", targetDepth)) { networkInterface.PrivateDnsName = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("sourceDestCheck", targetDepth)) { networkInterface.SourceDestCheck = BoolUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("groupSet/item", targetDepth)) { networkInterface.Groups.Add(GroupIdentifierUnmarshaller.GetInstance().Unmarshall(context)); continue; } if (context.TestExpression("attachment", targetDepth)) { networkInterface.Attachment = NetworkInterfaceAttachmentUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("association", targetDepth)) { networkInterface.Association = NetworkInterfaceAssociationUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("tagSet/item", targetDepth)) { networkInterface.TagSet.Add(TagUnmarshaller.GetInstance().Unmarshall(context)); continue; } if (context.TestExpression("privateIpAddressesSet/item", targetDepth)) { networkInterface.PrivateIpAddresses.Add(NetworkInterfacePrivateIpAddressUnmarshaller.GetInstance().Unmarshall(context)); continue; } } else if (context.IsEndElement && context.CurrentDepth < originalDepth) { return(networkInterface); } } return(networkInterface); }
public Vpc Unmarshall(XmlUnmarshallerContext context) { Vpc vpc = new Vpc(); int originalDepth = context.CurrentDepth; int targetDepth = originalDepth + 1; if (context.IsStartOfDocument) { targetDepth += 1; } while (context.Read()) { if (context.IsStartElement || context.IsAttribute) { if (context.TestExpression("vpcId", targetDepth)) { vpc.VpcId = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("state", targetDepth)) { vpc.State = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("cidrBlock", targetDepth)) { vpc.CidrBlock = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("dhcpOptionsId", targetDepth)) { vpc.DhcpOptionsId = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("tagSet/item", targetDepth)) { vpc.Tags.Add(TagUnmarshaller.GetInstance().Unmarshall(context)); continue; } if (context.TestExpression("instanceTenancy", targetDepth)) { vpc.InstanceTenancy = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("isDefault", targetDepth)) { vpc.IsDefault = BoolUnmarshaller.GetInstance().Unmarshall(context); continue; } } else if (context.IsEndElement && context.CurrentDepth < originalDepth) { return(vpc); } } return(vpc); }
public ConversionTask Unmarshall(XmlUnmarshallerContext context) { ConversionTask conversionTask = new ConversionTask(); int originalDepth = context.CurrentDepth; int targetDepth = originalDepth + 1; if (context.IsStartOfDocument) { targetDepth += 1; } while (context.Read()) { if (context.IsStartElement || context.IsAttribute) { if (context.TestExpression("conversionTaskId", targetDepth)) { conversionTask.ConversionTaskId = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("expirationTime", targetDepth)) { conversionTask.ExpirationTime = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("importInstance", targetDepth)) { conversionTask.ImportInstance = ImportInstanceTaskDetailsUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("importVolume", targetDepth)) { conversionTask.ImportVolume = ImportVolumeTaskDetailsUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("state", targetDepth)) { conversionTask.State = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("statusMessage", targetDepth)) { conversionTask.StatusMessage = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("tagSet/item", targetDepth)) { conversionTask.Tags.Add(TagUnmarshaller.GetInstance().Unmarshall(context)); continue; } } else if (context.IsEndElement && context.CurrentDepth < originalDepth) { return(conversionTask); } } return(conversionTask); }
public VpnConnection Unmarshall(XmlUnmarshallerContext context) { VpnConnection vpnConnection = new VpnConnection(); int originalDepth = context.CurrentDepth; int targetDepth = originalDepth + 1; if (context.IsStartOfDocument) { targetDepth += 1; } while (context.Read()) { if (context.IsStartElement || context.IsAttribute) { if (context.TestExpression("vpnConnectionId", targetDepth)) { vpnConnection.VpnConnectionId = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("state", targetDepth)) { vpnConnection.State = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("customerGatewayConfiguration", targetDepth)) { vpnConnection.CustomerGatewayConfiguration = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("type", targetDepth)) { vpnConnection.Type = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("customerGatewayId", targetDepth)) { vpnConnection.CustomerGatewayId = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("vpnGatewayId", targetDepth)) { vpnConnection.VpnGatewayId = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("tagSet/item", targetDepth)) { vpnConnection.Tags.Add(TagUnmarshaller.GetInstance().Unmarshall(context)); continue; } if (context.TestExpression("vgwTelemetry/item", targetDepth)) { vpnConnection.VgwTelemetry.Add(VgwTelemetryUnmarshaller.GetInstance().Unmarshall(context)); continue; } if (context.TestExpression("options", targetDepth)) { vpnConnection.Options = VpnConnectionOptionsUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("routes/item", targetDepth)) { vpnConnection.Routes.Add(VpnStaticRouteUnmarshaller.GetInstance().Unmarshall(context)); continue; } } else if (context.IsEndElement && context.CurrentDepth < originalDepth) { return(vpnConnection); } } return(vpnConnection); }
public Subnet Unmarshall(XmlUnmarshallerContext context) { Subnet subnet = new Subnet(); int originalDepth = context.CurrentDepth; int targetDepth = originalDepth + 1; if (context.IsStartOfDocument) { targetDepth += 1; } while (context.Read()) { if (context.IsStartElement || context.IsAttribute) { if (context.TestExpression("subnetId", targetDepth)) { subnet.SubnetId = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("state", targetDepth)) { subnet.State = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("vpcId", targetDepth)) { subnet.VpcId = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("cidrBlock", targetDepth)) { subnet.CidrBlock = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("availableIpAddressCount", targetDepth)) { subnet.AvailableIpAddressCount = IntUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("availabilityZone", targetDepth)) { subnet.AvailabilityZone = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("defaultForAz", targetDepth)) { subnet.DefaultForAz = BoolUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("mapPublicIpOnLaunch", targetDepth)) { subnet.MapPublicIpOnLaunch = BoolUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("tagSet/item", targetDepth)) { subnet.Tags.Add(TagUnmarshaller.GetInstance().Unmarshall(context)); continue; } } else if (context.IsEndElement && context.CurrentDepth < originalDepth) { return(subnet); } } return(subnet); }
public ReservedInstancesListing Unmarshall(XmlUnmarshallerContext context) { ReservedInstancesListing reservedInstancesListing = new ReservedInstancesListing(); int originalDepth = context.CurrentDepth; int targetDepth = originalDepth + 1; if (context.IsStartOfDocument) { targetDepth += 1; } while (context.Read()) { if (context.IsStartElement || context.IsAttribute) { if (context.TestExpression("reservedInstancesListingId", targetDepth)) { reservedInstancesListing.ReservedInstancesListingId = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("reservedInstancesId", targetDepth)) { reservedInstancesListing.ReservedInstancesId = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("createDate", targetDepth)) { reservedInstancesListing.CreateDate = DateTimeUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("updateDate", targetDepth)) { reservedInstancesListing.UpdateDate = DateTimeUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("status", targetDepth)) { reservedInstancesListing.Status = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("statusMessage", targetDepth)) { reservedInstancesListing.StatusMessage = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("instanceCounts/item", targetDepth)) { reservedInstancesListing.InstanceCounts.Add(InstanceCountUnmarshaller.GetInstance().Unmarshall(context)); continue; } if (context.TestExpression("priceSchedules/item", targetDepth)) { reservedInstancesListing.PriceSchedules.Add(PriceScheduleUnmarshaller.GetInstance().Unmarshall(context)); continue; } if (context.TestExpression("tagSet/item", targetDepth)) { reservedInstancesListing.Tags.Add(TagUnmarshaller.GetInstance().Unmarshall(context)); continue; } if (context.TestExpression("clientToken", targetDepth)) { reservedInstancesListing.ClientToken = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } } else if (context.IsEndElement && context.CurrentDepth < originalDepth) { return(reservedInstancesListing); } } return(reservedInstancesListing); }
public RouteTable Unmarshall(XmlUnmarshallerContext context) { RouteTable routeTable = new RouteTable(); int originalDepth = context.CurrentDepth; int targetDepth = originalDepth + 1; if (context.IsStartOfDocument) { targetDepth += 1; } while (context.Read()) { if (context.IsStartElement || context.IsAttribute) { if (context.TestExpression("routeTableId", targetDepth)) { routeTable.RouteTableId = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("vpcId", targetDepth)) { routeTable.VpcId = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("routeSet/item", targetDepth)) { routeTable.Routes.Add(RouteUnmarshaller.GetInstance().Unmarshall(context)); continue; } if (context.TestExpression("associationSet/item", targetDepth)) { routeTable.Associations.Add(RouteTableAssociationUnmarshaller.GetInstance().Unmarshall(context)); continue; } if (context.TestExpression("tagSet/item", targetDepth)) { routeTable.Tags.Add(TagUnmarshaller.GetInstance().Unmarshall(context)); continue; } if (context.TestExpression("propagatingVgwSet/item", targetDepth)) { routeTable.PropagatingVgws.Add(PropagatingVgwUnmarshaller.GetInstance().Unmarshall(context)); continue; } } else if (context.IsEndElement && context.CurrentDepth < originalDepth) { return(routeTable); } } return(routeTable); }
public Image Unmarshall(XmlUnmarshallerContext context) { Image image = new Image(); int originalDepth = context.CurrentDepth; int targetDepth = originalDepth + 1; if (context.IsStartOfDocument) { targetDepth += 1; } while (context.Read()) { if (context.IsStartElement || context.IsAttribute) { if (context.TestExpression("imageId", targetDepth)) { image.ImageId = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("imageLocation", targetDepth)) { image.ImageLocation = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("imageState", targetDepth)) { image.State = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("imageOwnerId", targetDepth)) { image.OwnerId = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("isPublic", targetDepth)) { image.Public = BoolUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("productCodes/item", targetDepth)) { image.ProductCodes.Add(ProductCodeUnmarshaller.GetInstance().Unmarshall(context)); continue; } if (context.TestExpression("architecture", targetDepth)) { image.Architecture = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("imageType", targetDepth)) { image.ImageType = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("kernelId", targetDepth)) { image.KernelId = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("ramdiskId", targetDepth)) { image.RamdiskId = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("platform", targetDepth)) { image.Platform = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("sriovNetSupport", targetDepth)) { image.SriovNetSupport = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("stateReason", targetDepth)) { image.StateReason = StateReasonUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("imageOwnerAlias", targetDepth)) { image.ImageOwnerAlias = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("name", targetDepth)) { image.Name = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("description", targetDepth)) { image.Description = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("rootDeviceType", targetDepth)) { image.RootDeviceType = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("rootDeviceName", targetDepth)) { image.RootDeviceName = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("blockDeviceMapping/item", targetDepth)) { image.BlockDeviceMappings.Add(BlockDeviceMappingUnmarshaller.GetInstance().Unmarshall(context)); continue; } if (context.TestExpression("virtualizationType", targetDepth)) { image.VirtualizationType = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("tagSet/item", targetDepth)) { image.Tags.Add(TagUnmarshaller.GetInstance().Unmarshall(context)); continue; } if (context.TestExpression("hypervisor", targetDepth)) { image.Hypervisor = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } } else if (context.IsEndElement && context.CurrentDepth < originalDepth) { return(image); } } return(image); }
public VpnGateway Unmarshall(XmlUnmarshallerContext context) { VpnGateway vpnGateway = new VpnGateway(); int originalDepth = context.CurrentDepth; int targetDepth = originalDepth + 1; if (context.IsStartOfDocument) { targetDepth += 1; } while (context.Read()) { if (context.IsStartElement || context.IsAttribute) { if (context.TestExpression("vpnGatewayId", targetDepth)) { vpnGateway.VpnGatewayId = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("state", targetDepth)) { vpnGateway.State = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("type", targetDepth)) { vpnGateway.Type = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("availabilityZone", targetDepth)) { vpnGateway.AvailabilityZone = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("attachments/item", targetDepth)) { vpnGateway.VpcAttachments.Add(VpcAttachmentUnmarshaller.GetInstance().Unmarshall(context)); continue; } if (context.TestExpression("tagSet/item", targetDepth)) { vpnGateway.Tags.Add(TagUnmarshaller.GetInstance().Unmarshall(context)); continue; } } else if (context.IsEndElement && context.CurrentDepth < originalDepth) { return(vpnGateway); } } return(vpnGateway); }
public SecurityGroup Unmarshall(XmlUnmarshallerContext context) { SecurityGroup securityGroup = new SecurityGroup(); int originalDepth = context.CurrentDepth; int targetDepth = originalDepth + 1; if (context.IsStartOfDocument) { targetDepth += 1; } while (context.Read()) { if (context.IsStartElement || context.IsAttribute) { if (context.TestExpression("ownerId", targetDepth)) { securityGroup.OwnerId = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("groupName", targetDepth)) { securityGroup.GroupName = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("groupId", targetDepth)) { securityGroup.GroupId = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("groupDescription", targetDepth)) { securityGroup.Description = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("ipPermissions/item", targetDepth)) { securityGroup.IpPermissions.Add(IpPermissionUnmarshaller.GetInstance().Unmarshall(context)); continue; } if (context.TestExpression("ipPermissionsEgress/item", targetDepth)) { securityGroup.IpPermissionsEgress.Add(IpPermissionUnmarshaller.GetInstance().Unmarshall(context)); continue; } if (context.TestExpression("vpcId", targetDepth)) { securityGroup.VpcId = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("tagSet/item", targetDepth)) { securityGroup.Tags.Add(TagUnmarshaller.GetInstance().Unmarshall(context)); continue; } } else if (context.IsEndElement && context.CurrentDepth < originalDepth) { return(securityGroup); } } return(securityGroup); }
public VpcPeeringConnection Unmarshall(XmlUnmarshallerContext context) { VpcPeeringConnection vpcPeeringConnection = new VpcPeeringConnection(); int originalDepth = context.CurrentDepth; int targetDepth = originalDepth + 1; if (context.IsStartOfDocument) { targetDepth += 1; } while (context.Read()) { if (context.IsStartElement || context.IsAttribute) { if (context.TestExpression("accepterVpcInfo", targetDepth)) { vpcPeeringConnection.AccepterVpcInfo = VpcPeeringConnectionVpcInfoUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("expirationTime", targetDepth)) { vpcPeeringConnection.ExpirationTime = DateTimeUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("requesterVpcInfo", targetDepth)) { vpcPeeringConnection.RequesterVpcInfo = VpcPeeringConnectionVpcInfoUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("status", targetDepth)) { vpcPeeringConnection.Status = VpcPeeringConnectionStateReasonUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("tagSet/item", targetDepth)) { vpcPeeringConnection.Tags.Add(TagUnmarshaller.GetInstance().Unmarshall(context)); continue; } if (context.TestExpression("vpcPeeringConnectionId", targetDepth)) { vpcPeeringConnection.VpcPeeringConnectionId = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } } else if (context.IsEndElement && context.CurrentDepth < originalDepth) { return(vpcPeeringConnection); } } return(vpcPeeringConnection); }