private string ConstructMemberQueryKey(string parameterBase, Member member, int memberIndex) { var queryKey = new StringBuilder(parameterBase); if (queryKey.Length > 0) { queryKey.Append("."); } queryKey.AppendFormat("{0}.", GeneratorHelpers.DetermineAWSQueryMarshallName(member, this.Operation)); var memberPrefix = GeneratorHelpers.DetermineAWSQueryListMemberPrefix(member); // can return empty for EC2/AWSQuery if (!string.IsNullOrEmpty(memberPrefix)) { queryKey.AppendFormat("{0}.", memberPrefix); } queryKey.Append(memberIndex); var memberSuffix = GeneratorHelpers.DetermineAWSQueryListMemberSuffix(this.Operation, member); if (memberSuffix != null) { queryKey.AppendFormat(".{0}", memberSuffix); } return(queryKey.ToString()); }
void ProcessMembers(int level, string parameterContext, string variableName, IEnumerable <Member> members) { string variableNameFragment = variableName.Replace(".", string.Empty); foreach (var member in members) { if (GeneratorHelpers.UseCustomMarshall(member, this.Operation)) { continue; } var marshallName = GeneratorHelpers.DetermineAWSQueryMarshallName(member, this.Operation); #line default #line hidden #line 66 "C:\data\dev\sdk\AWSDotNetPublic.Xray\generator\ServiceClientGeneratorLib\Generators\Marshallers\AWSQueryRequestMarshaller.tt" this.Write(this.ToStringHelper.ToStringWithCulture(new string(' ', level * 4))); #line default #line hidden #line 66 "C:\data\dev\sdk\AWSDotNetPublic.Xray\generator\ServiceClientGeneratorLib\Generators\Marshallers\AWSQueryRequestMarshaller.tt" this.Write(" if("); #line default #line hidden #line 66 "C:\data\dev\sdk\AWSDotNetPublic.Xray\generator\ServiceClientGeneratorLib\Generators\Marshallers\AWSQueryRequestMarshaller.tt" this.Write(this.ToStringHelper.ToStringWithCulture(variableName)); #line default #line hidden #line 66 "C:\data\dev\sdk\AWSDotNetPublic.Xray\generator\ServiceClientGeneratorLib\Generators\Marshallers\AWSQueryRequestMarshaller.tt" this.Write(".IsSet"); #line default #line hidden #line 66 "C:\data\dev\sdk\AWSDotNetPublic.Xray\generator\ServiceClientGeneratorLib\Generators\Marshallers\AWSQueryRequestMarshaller.tt" this.Write(this.ToStringHelper.ToStringWithCulture(member.PropertyName)); #line default #line hidden #line 66 "C:\data\dev\sdk\AWSDotNetPublic.Xray\generator\ServiceClientGeneratorLib\Generators\Marshallers\AWSQueryRequestMarshaller.tt" this.Write("())\r\n"); #line default #line hidden #line 67 "C:\data\dev\sdk\AWSDotNetPublic.Xray\generator\ServiceClientGeneratorLib\Generators\Marshallers\AWSQueryRequestMarshaller.tt" this.Write(this.ToStringHelper.ToStringWithCulture(new string(' ', level * 4))); #line default #line hidden #line 67 "C:\data\dev\sdk\AWSDotNetPublic.Xray\generator\ServiceClientGeneratorLib\Generators\Marshallers\AWSQueryRequestMarshaller.tt" this.Write(" {\r\n"); #line default #line hidden #line 68 "C:\data\dev\sdk\AWSDotNetPublic.Xray\generator\ServiceClientGeneratorLib\Generators\Marshallers\AWSQueryRequestMarshaller.tt" if (member.IsList) { string context = ComposeContext(parameterContext, marshallName); string listItemContext = ComposeContext(context, GeneratorHelpers.DetermineAWSQueryListMemberPrefix(member), variableNameFragment + "listValueIndex", GeneratorHelpers.DetermineAWSQueryListMemberSuffix(this.Operation, member)); #line default #line hidden #line 77 "C:\data\dev\sdk\AWSDotNetPublic.Xray\generator\ServiceClientGeneratorLib\Generators\Marshallers\AWSQueryRequestMarshaller.tt" this.Write(this.ToStringHelper.ToStringWithCulture(new string(' ', level * 4))); #line default #line hidden #line 77 "C:\data\dev\sdk\AWSDotNetPublic.Xray\generator\ServiceClientGeneratorLib\Generators\Marshallers\AWSQueryRequestMarshaller.tt" this.Write(" int "); #line default #line hidden #line 77 "C:\data\dev\sdk\AWSDotNetPublic.Xray\generator\ServiceClientGeneratorLib\Generators\Marshallers\AWSQueryRequestMarshaller.tt" this.Write(this.ToStringHelper.ToStringWithCulture(variableNameFragment)); #line default #line hidden #line 77 "C:\data\dev\sdk\AWSDotNetPublic.Xray\generator\ServiceClientGeneratorLib\Generators\Marshallers\AWSQueryRequestMarshaller.tt" this.Write("listValueIndex = 1;\r\n"); #line default #line hidden #line 78 "C:\data\dev\sdk\AWSDotNetPublic.Xray\generator\ServiceClientGeneratorLib\Generators\Marshallers\AWSQueryRequestMarshaller.tt" this.Write(this.ToStringHelper.ToStringWithCulture(new string(' ', level * 4))); #line default #line hidden #line 78 "C:\data\dev\sdk\AWSDotNetPublic.Xray\generator\ServiceClientGeneratorLib\Generators\Marshallers\AWSQueryRequestMarshaller.tt" this.Write(" foreach(var "); #line default #line hidden #line 78 "C:\data\dev\sdk\AWSDotNetPublic.Xray\generator\ServiceClientGeneratorLib\Generators\Marshallers\AWSQueryRequestMarshaller.tt" this.Write(this.ToStringHelper.ToStringWithCulture(variableNameFragment)); #line default #line hidden #line 78 "C:\data\dev\sdk\AWSDotNetPublic.Xray\generator\ServiceClientGeneratorLib\Generators\Marshallers\AWSQueryRequestMarshaller.tt" this.Write("listValue in "); #line default #line hidden #line 78 "C:\data\dev\sdk\AWSDotNetPublic.Xray\generator\ServiceClientGeneratorLib\Generators\Marshallers\AWSQueryRequestMarshaller.tt" this.Write(this.ToStringHelper.ToStringWithCulture(variableName)); #line default #line hidden #line 78 "C:\data\dev\sdk\AWSDotNetPublic.Xray\generator\ServiceClientGeneratorLib\Generators\Marshallers\AWSQueryRequestMarshaller.tt" this.Write("."); #line default #line hidden #line 78 "C:\data\dev\sdk\AWSDotNetPublic.Xray\generator\ServiceClientGeneratorLib\Generators\Marshallers\AWSQueryRequestMarshaller.tt" this.Write(this.ToStringHelper.ToStringWithCulture(member.PropertyName)); #line default #line hidden #line 78 "C:\data\dev\sdk\AWSDotNetPublic.Xray\generator\ServiceClientGeneratorLib\Generators\Marshallers\AWSQueryRequestMarshaller.tt" this.Write(")\r\n"); #line default #line hidden #line 79 "C:\data\dev\sdk\AWSDotNetPublic.Xray\generator\ServiceClientGeneratorLib\Generators\Marshallers\AWSQueryRequestMarshaller.tt" this.Write(this.ToStringHelper.ToStringWithCulture(new string(' ', level * 4))); #line default #line hidden #line 79 "C:\data\dev\sdk\AWSDotNetPublic.Xray\generator\ServiceClientGeneratorLib\Generators\Marshallers\AWSQueryRequestMarshaller.tt" this.Write(" {\r\n"); #line default #line hidden #line 80 "C:\data\dev\sdk\AWSDotNetPublic.Xray\generator\ServiceClientGeneratorLib\Generators\Marshallers\AWSQueryRequestMarshaller.tt" if (member.Shape.ListShape.IsStructure) { ProcessMembers(level + 2, listItemContext, variableNameFragment + "listValue", member.Shape.ListShape.Members); } else { if (string.IsNullOrEmpty(member.CustomMarshallerTransformation)) { #line default #line hidden #line 90 "C:\data\dev\sdk\AWSDotNetPublic.Xray\generator\ServiceClientGeneratorLib\Generators\Marshallers\AWSQueryRequestMarshaller.tt" this.Write(this.ToStringHelper.ToStringWithCulture(new string(' ', level * 4))); #line default #line hidden #line 90 "C:\data\dev\sdk\AWSDotNetPublic.Xray\generator\ServiceClientGeneratorLib\Generators\Marshallers\AWSQueryRequestMarshaller.tt" this.Write(" request.Parameters.Add("); #line default #line hidden #line 90 "C:\data\dev\sdk\AWSDotNetPublic.Xray\generator\ServiceClientGeneratorLib\Generators\Marshallers\AWSQueryRequestMarshaller.tt" this.Write(this.ToStringHelper.ToStringWithCulture(listItemContext)); #line default #line hidden #line 90 "C:\data\dev\sdk\AWSDotNetPublic.Xray\generator\ServiceClientGeneratorLib\Generators\Marshallers\AWSQueryRequestMarshaller.tt" this.Write(", StringUtils.From"); #line default #line hidden #line 90 "C:\data\dev\sdk\AWSDotNetPublic.Xray\generator\ServiceClientGeneratorLib\Generators\Marshallers\AWSQueryRequestMarshaller.tt" this.Write(this.ToStringHelper.ToStringWithCulture(member.Shape.ListShape.GetPrimitiveType())); #line default #line hidden #line 90 "C:\data\dev\sdk\AWSDotNetPublic.Xray\generator\ServiceClientGeneratorLib\Generators\Marshallers\AWSQueryRequestMarshaller.tt" this.Write("("); #line default #line hidden #line 90 "C:\data\dev\sdk\AWSDotNetPublic.Xray\generator\ServiceClientGeneratorLib\Generators\Marshallers\AWSQueryRequestMarshaller.tt" this.Write(this.ToStringHelper.ToStringWithCulture(variableNameFragment)); #line default #line hidden #line 90 "C:\data\dev\sdk\AWSDotNetPublic.Xray\generator\ServiceClientGeneratorLib\Generators\Marshallers\AWSQueryRequestMarshaller.tt" this.Write("listValue));\r\n"); #line default #line hidden #line 91 "C:\data\dev\sdk\AWSDotNetPublic.Xray\generator\ServiceClientGeneratorLib\Generators\Marshallers\AWSQueryRequestMarshaller.tt" } else { #line default #line hidden #line 96 "C:\data\dev\sdk\AWSDotNetPublic.Xray\generator\ServiceClientGeneratorLib\Generators\Marshallers\AWSQueryRequestMarshaller.tt" this.Write(this.ToStringHelper.ToStringWithCulture(new string(' ', level * 4))); #line default #line hidden #line 96 "C:\data\dev\sdk\AWSDotNetPublic.Xray\generator\ServiceClientGeneratorLib\Generators\Marshallers\AWSQueryRequestMarshaller.tt" this.Write(" request.Parameters.Add("); #line default #line hidden #line 96 "C:\data\dev\sdk\AWSDotNetPublic.Xray\generator\ServiceClientGeneratorLib\Generators\Marshallers\AWSQueryRequestMarshaller.tt" this.Write(this.ToStringHelper.ToStringWithCulture(listItemContext)); #line default #line hidden #line 96 "C:\data\dev\sdk\AWSDotNetPublic.Xray\generator\ServiceClientGeneratorLib\Generators\Marshallers\AWSQueryRequestMarshaller.tt" this.Write(", "); #line default #line hidden #line 96 "C:\data\dev\sdk\AWSDotNetPublic.Xray\generator\ServiceClientGeneratorLib\Generators\Marshallers\AWSQueryRequestMarshaller.tt" this.Write(this.ToStringHelper.ToStringWithCulture(member.CustomMarshallerTransformation + "(" + variableNameFragment + "listValue)")); #line default #line hidden #line 96 "C:\data\dev\sdk\AWSDotNetPublic.Xray\generator\ServiceClientGeneratorLib\Generators\Marshallers\AWSQueryRequestMarshaller.tt" this.Write(");\r\n"); #line default #line hidden #line 97 "C:\data\dev\sdk\AWSDotNetPublic.Xray\generator\ServiceClientGeneratorLib\Generators\Marshallers\AWSQueryRequestMarshaller.tt" } } #line default #line hidden #line 101 "C:\data\dev\sdk\AWSDotNetPublic.Xray\generator\ServiceClientGeneratorLib\Generators\Marshallers\AWSQueryRequestMarshaller.tt" this.Write(this.ToStringHelper.ToStringWithCulture(new string(' ', level * 4))); #line default #line hidden #line 101 "C:\data\dev\sdk\AWSDotNetPublic.Xray\generator\ServiceClientGeneratorLib\Generators\Marshallers\AWSQueryRequestMarshaller.tt" this.Write(" "); #line default #line hidden #line 101 "C:\data\dev\sdk\AWSDotNetPublic.Xray\generator\ServiceClientGeneratorLib\Generators\Marshallers\AWSQueryRequestMarshaller.tt" this.Write(this.ToStringHelper.ToStringWithCulture(variableNameFragment)); #line default #line hidden #line 101 "C:\data\dev\sdk\AWSDotNetPublic.Xray\generator\ServiceClientGeneratorLib\Generators\Marshallers\AWSQueryRequestMarshaller.tt" this.Write("listValueIndex++;\r\n"); #line default #line hidden #line 102 "C:\data\dev\sdk\AWSDotNetPublic.Xray\generator\ServiceClientGeneratorLib\Generators\Marshallers\AWSQueryRequestMarshaller.tt" this.Write(this.ToStringHelper.ToStringWithCulture(new string(' ', level * 4))); #line default #line hidden #line 102 "C:\data\dev\sdk\AWSDotNetPublic.Xray\generator\ServiceClientGeneratorLib\Generators\Marshallers\AWSQueryRequestMarshaller.tt" this.Write(" }\r\n"); #line default #line hidden #line 103 "C:\data\dev\sdk\AWSDotNetPublic.Xray\generator\ServiceClientGeneratorLib\Generators\Marshallers\AWSQueryRequestMarshaller.tt" } else if (member.IsMap) { string context = ComposeContext(parameterContext, marshallName); string mapItemContext = ComposeContext(context, member.Shape.IsFlattened ? "" : "entry", "mapIndex"); string mapKeyContext = ComposeContext(mapItemContext, member.Shape.KeyMarshallName); string mapValueContext = ComposeContext(mapItemContext, member.Shape.ValueMarshallName); #line default #line hidden #line 112 "C:\data\dev\sdk\AWSDotNetPublic.Xray\generator\ServiceClientGeneratorLib\Generators\Marshallers\AWSQueryRequestMarshaller.tt" this.Write(this.ToStringHelper.ToStringWithCulture(new string(' ', level * 4))); #line default #line hidden #line 112 "C:\data\dev\sdk\AWSDotNetPublic.Xray\generator\ServiceClientGeneratorLib\Generators\Marshallers\AWSQueryRequestMarshaller.tt" this.Write(" int mapIndex = 1;\r\n"); #line default #line hidden #line 113 "C:\data\dev\sdk\AWSDotNetPublic.Xray\generator\ServiceClientGeneratorLib\Generators\Marshallers\AWSQueryRequestMarshaller.tt" this.Write(this.ToStringHelper.ToStringWithCulture(new string(' ', level * 4))); #line default #line hidden #line 113 "C:\data\dev\sdk\AWSDotNetPublic.Xray\generator\ServiceClientGeneratorLib\Generators\Marshallers\AWSQueryRequestMarshaller.tt" this.Write(" foreach(var key in "); #line default #line hidden #line 113 "C:\data\dev\sdk\AWSDotNetPublic.Xray\generator\ServiceClientGeneratorLib\Generators\Marshallers\AWSQueryRequestMarshaller.tt" this.Write(this.ToStringHelper.ToStringWithCulture(variableName)); #line default #line hidden #line 113 "C:\data\dev\sdk\AWSDotNetPublic.Xray\generator\ServiceClientGeneratorLib\Generators\Marshallers\AWSQueryRequestMarshaller.tt" this.Write("."); #line default #line hidden #line 113 "C:\data\dev\sdk\AWSDotNetPublic.Xray\generator\ServiceClientGeneratorLib\Generators\Marshallers\AWSQueryRequestMarshaller.tt" this.Write(this.ToStringHelper.ToStringWithCulture(member.PropertyName)); #line default #line hidden #line 113 "C:\data\dev\sdk\AWSDotNetPublic.Xray\generator\ServiceClientGeneratorLib\Generators\Marshallers\AWSQueryRequestMarshaller.tt" this.Write(".Keys)\r\n"); #line default #line hidden #line 114 "C:\data\dev\sdk\AWSDotNetPublic.Xray\generator\ServiceClientGeneratorLib\Generators\Marshallers\AWSQueryRequestMarshaller.tt" this.Write(this.ToStringHelper.ToStringWithCulture(new string(' ', level * 4))); #line default #line hidden #line 114 "C:\data\dev\sdk\AWSDotNetPublic.Xray\generator\ServiceClientGeneratorLib\Generators\Marshallers\AWSQueryRequestMarshaller.tt" this.Write(" {\r\n"); #line default #line hidden #line 115 "C:\data\dev\sdk\AWSDotNetPublic.Xray\generator\ServiceClientGeneratorLib\Generators\Marshallers\AWSQueryRequestMarshaller.tt" this.Write(this.ToStringHelper.ToStringWithCulture(new string(' ', level * 4))); #line default #line hidden #line 115 "C:\data\dev\sdk\AWSDotNetPublic.Xray\generator\ServiceClientGeneratorLib\Generators\Marshallers\AWSQueryRequestMarshaller.tt" this.Write(" "); #line default #line hidden #line 115 "C:\data\dev\sdk\AWSDotNetPublic.Xray\generator\ServiceClientGeneratorLib\Generators\Marshallers\AWSQueryRequestMarshaller.tt" this.Write(this.ToStringHelper.ToStringWithCulture(member.Shape.ValueShape.IsStructure ? member.Shape.ValueShape.Name : member.Shape.ValueShape.GetPrimitiveType())); #line default #line hidden #line 115 "C:\data\dev\sdk\AWSDotNetPublic.Xray\generator\ServiceClientGeneratorLib\Generators\Marshallers\AWSQueryRequestMarshaller.tt" this.Write(" value;\r\n"); #line default #line hidden #line 116 "C:\data\dev\sdk\AWSDotNetPublic.Xray\generator\ServiceClientGeneratorLib\Generators\Marshallers\AWSQueryRequestMarshaller.tt" this.Write(this.ToStringHelper.ToStringWithCulture(new string(' ', level * 4))); #line default #line hidden #line 116 "C:\data\dev\sdk\AWSDotNetPublic.Xray\generator\ServiceClientGeneratorLib\Generators\Marshallers\AWSQueryRequestMarshaller.tt" this.Write(" bool hasValue = "); #line default #line hidden #line 116 "C:\data\dev\sdk\AWSDotNetPublic.Xray\generator\ServiceClientGeneratorLib\Generators\Marshallers\AWSQueryRequestMarshaller.tt" this.Write(this.ToStringHelper.ToStringWithCulture(variableName)); #line default #line hidden #line 116 "C:\data\dev\sdk\AWSDotNetPublic.Xray\generator\ServiceClientGeneratorLib\Generators\Marshallers\AWSQueryRequestMarshaller.tt" this.Write("."); #line default #line hidden #line 116 "C:\data\dev\sdk\AWSDotNetPublic.Xray\generator\ServiceClientGeneratorLib\Generators\Marshallers\AWSQueryRequestMarshaller.tt" this.Write(this.ToStringHelper.ToStringWithCulture(member.PropertyName)); #line default #line hidden #line 116 "C:\data\dev\sdk\AWSDotNetPublic.Xray\generator\ServiceClientGeneratorLib\Generators\Marshallers\AWSQueryRequestMarshaller.tt" this.Write(".TryGetValue(key, out value);\r\n"); #line default #line hidden #line 117 "C:\data\dev\sdk\AWSDotNetPublic.Xray\generator\ServiceClientGeneratorLib\Generators\Marshallers\AWSQueryRequestMarshaller.tt" this.Write(this.ToStringHelper.ToStringWithCulture(new string(' ', level * 4))); #line default #line hidden #line 117 "C:\data\dev\sdk\AWSDotNetPublic.Xray\generator\ServiceClientGeneratorLib\Generators\Marshallers\AWSQueryRequestMarshaller.tt" this.Write(" request.Parameters.Add("); #line default #line hidden #line 117 "C:\data\dev\sdk\AWSDotNetPublic.Xray\generator\ServiceClientGeneratorLib\Generators\Marshallers\AWSQueryRequestMarshaller.tt" this.Write(this.ToStringHelper.ToStringWithCulture(mapKeyContext)); #line default #line hidden #line 117 "C:\data\dev\sdk\AWSDotNetPublic.Xray\generator\ServiceClientGeneratorLib\Generators\Marshallers\AWSQueryRequestMarshaller.tt" this.Write(", StringUtils.From"); #line default #line hidden #line 117 "C:\data\dev\sdk\AWSDotNetPublic.Xray\generator\ServiceClientGeneratorLib\Generators\Marshallers\AWSQueryRequestMarshaller.tt" this.Write(this.ToStringHelper.ToStringWithCulture(member.Shape.KeyShape.GetPrimitiveType())); #line default #line hidden #line 117 "C:\data\dev\sdk\AWSDotNetPublic.Xray\generator\ServiceClientGeneratorLib\Generators\Marshallers\AWSQueryRequestMarshaller.tt" this.Write("(key));\r\n"); #line default #line hidden #line 118 "C:\data\dev\sdk\AWSDotNetPublic.Xray\generator\ServiceClientGeneratorLib\Generators\Marshallers\AWSQueryRequestMarshaller.tt" this.Write(this.ToStringHelper.ToStringWithCulture(new string(' ', level * 4))); #line default #line hidden #line 118 "C:\data\dev\sdk\AWSDotNetPublic.Xray\generator\ServiceClientGeneratorLib\Generators\Marshallers\AWSQueryRequestMarshaller.tt" this.Write(" if (hasValue)\r\n"); #line default #line hidden #line 119 "C:\data\dev\sdk\AWSDotNetPublic.Xray\generator\ServiceClientGeneratorLib\Generators\Marshallers\AWSQueryRequestMarshaller.tt" this.Write(this.ToStringHelper.ToStringWithCulture(new string(' ', level * 4))); #line default #line hidden #line 119 "C:\data\dev\sdk\AWSDotNetPublic.Xray\generator\ServiceClientGeneratorLib\Generators\Marshallers\AWSQueryRequestMarshaller.tt" this.Write(" {\r\n"); #line default #line hidden #line 120 "C:\data\dev\sdk\AWSDotNetPublic.Xray\generator\ServiceClientGeneratorLib\Generators\Marshallers\AWSQueryRequestMarshaller.tt" if (member.Shape.ValueShape.IsStructure) { ProcessMembers(level + 3, mapValueContext, "value", member.Shape.ValueShape.Members); } else { if (string.IsNullOrEmpty(member.CustomMarshallerTransformation)) { #line default #line hidden #line 130 "C:\data\dev\sdk\AWSDotNetPublic.Xray\generator\ServiceClientGeneratorLib\Generators\Marshallers\AWSQueryRequestMarshaller.tt" this.Write(this.ToStringHelper.ToStringWithCulture(new string(' ', level * 4))); #line default #line hidden #line 130 "C:\data\dev\sdk\AWSDotNetPublic.Xray\generator\ServiceClientGeneratorLib\Generators\Marshallers\AWSQueryRequestMarshaller.tt" this.Write(" request.Parameters.Add("); #line default #line hidden #line 130 "C:\data\dev\sdk\AWSDotNetPublic.Xray\generator\ServiceClientGeneratorLib\Generators\Marshallers\AWSQueryRequestMarshaller.tt" this.Write(this.ToStringHelper.ToStringWithCulture(mapValueContext)); #line default #line hidden #line 130 "C:\data\dev\sdk\AWSDotNetPublic.Xray\generator\ServiceClientGeneratorLib\Generators\Marshallers\AWSQueryRequestMarshaller.tt" this.Write(", StringUtils.From"); #line default #line hidden #line 130 "C:\data\dev\sdk\AWSDotNetPublic.Xray\generator\ServiceClientGeneratorLib\Generators\Marshallers\AWSQueryRequestMarshaller.tt" this.Write(this.ToStringHelper.ToStringWithCulture(member.Shape.ValueShape.GetPrimitiveType())); #line default #line hidden #line 130 "C:\data\dev\sdk\AWSDotNetPublic.Xray\generator\ServiceClientGeneratorLib\Generators\Marshallers\AWSQueryRequestMarshaller.tt" this.Write("(value));\r\n"); #line default #line hidden #line 131 "C:\data\dev\sdk\AWSDotNetPublic.Xray\generator\ServiceClientGeneratorLib\Generators\Marshallers\AWSQueryRequestMarshaller.tt" } else { #line default #line hidden #line 135 "C:\data\dev\sdk\AWSDotNetPublic.Xray\generator\ServiceClientGeneratorLib\Generators\Marshallers\AWSQueryRequestMarshaller.tt" this.Write(this.ToStringHelper.ToStringWithCulture(new string(' ', level * 4))); #line default #line hidden #line 135 "C:\data\dev\sdk\AWSDotNetPublic.Xray\generator\ServiceClientGeneratorLib\Generators\Marshallers\AWSQueryRequestMarshaller.tt" this.Write(" request.Parameters.Add("); #line default #line hidden #line 135 "C:\data\dev\sdk\AWSDotNetPublic.Xray\generator\ServiceClientGeneratorLib\Generators\Marshallers\AWSQueryRequestMarshaller.tt" this.Write(this.ToStringHelper.ToStringWithCulture(mapValueContext)); #line default #line hidden #line 135 "C:\data\dev\sdk\AWSDotNetPublic.Xray\generator\ServiceClientGeneratorLib\Generators\Marshallers\AWSQueryRequestMarshaller.tt" this.Write(", "); #line default #line hidden #line 135 "C:\data\dev\sdk\AWSDotNetPublic.Xray\generator\ServiceClientGeneratorLib\Generators\Marshallers\AWSQueryRequestMarshaller.tt" this.Write(this.ToStringHelper.ToStringWithCulture(member.CustomMarshallerTransformation + "(value)")); #line default #line hidden #line 135 "C:\data\dev\sdk\AWSDotNetPublic.Xray\generator\ServiceClientGeneratorLib\Generators\Marshallers\AWSQueryRequestMarshaller.tt" this.Write(");\r\n"); #line default #line hidden #line 136 "C:\data\dev\sdk\AWSDotNetPublic.Xray\generator\ServiceClientGeneratorLib\Generators\Marshallers\AWSQueryRequestMarshaller.tt" } } #line default #line hidden #line 140 "C:\data\dev\sdk\AWSDotNetPublic.Xray\generator\ServiceClientGeneratorLib\Generators\Marshallers\AWSQueryRequestMarshaller.tt" this.Write(this.ToStringHelper.ToStringWithCulture(new string(' ', level * 4))); #line default #line hidden #line 140 "C:\data\dev\sdk\AWSDotNetPublic.Xray\generator\ServiceClientGeneratorLib\Generators\Marshallers\AWSQueryRequestMarshaller.tt" this.Write(" }\r\n"); #line default #line hidden #line 141 "C:\data\dev\sdk\AWSDotNetPublic.Xray\generator\ServiceClientGeneratorLib\Generators\Marshallers\AWSQueryRequestMarshaller.tt" this.Write(this.ToStringHelper.ToStringWithCulture(new string(' ', level * 4))); #line default #line hidden #line 141 "C:\data\dev\sdk\AWSDotNetPublic.Xray\generator\ServiceClientGeneratorLib\Generators\Marshallers\AWSQueryRequestMarshaller.tt" this.Write(" mapIndex++;\r\n"); #line default #line hidden #line 142 "C:\data\dev\sdk\AWSDotNetPublic.Xray\generator\ServiceClientGeneratorLib\Generators\Marshallers\AWSQueryRequestMarshaller.tt" this.Write(this.ToStringHelper.ToStringWithCulture(new string(' ', level * 4))); #line default #line hidden #line 142 "C:\data\dev\sdk\AWSDotNetPublic.Xray\generator\ServiceClientGeneratorLib\Generators\Marshallers\AWSQueryRequestMarshaller.tt" this.Write(" }\r\n"); #line default #line hidden #line 143 "C:\data\dev\sdk\AWSDotNetPublic.Xray\generator\ServiceClientGeneratorLib\Generators\Marshallers\AWSQueryRequestMarshaller.tt" } else if (member.IsStructure) { string context = ComposeContext(parameterContext, marshallName); ProcessMembers(level + 1, context, variableName + "." + member.PropertyName, member.Shape.Members); } else { string context = ComposeContext(parameterContext, marshallName); string memberProperty = variableName + "." + member.PropertyName + (member.UseNullable ? ".Value" : string.Empty); if (string.IsNullOrEmpty(member.CustomMarshallerTransformation)) { #line default #line hidden #line 157 "C:\data\dev\sdk\AWSDotNetPublic.Xray\generator\ServiceClientGeneratorLib\Generators\Marshallers\AWSQueryRequestMarshaller.tt" this.Write(this.ToStringHelper.ToStringWithCulture(new string(' ', level * 4))); #line default #line hidden #line 157 "C:\data\dev\sdk\AWSDotNetPublic.Xray\generator\ServiceClientGeneratorLib\Generators\Marshallers\AWSQueryRequestMarshaller.tt" this.Write(" request.Parameters.Add("); #line default #line hidden #line 157 "C:\data\dev\sdk\AWSDotNetPublic.Xray\generator\ServiceClientGeneratorLib\Generators\Marshallers\AWSQueryRequestMarshaller.tt" this.Write(this.ToStringHelper.ToStringWithCulture(context)); #line default #line hidden #line 157 "C:\data\dev\sdk\AWSDotNetPublic.Xray\generator\ServiceClientGeneratorLib\Generators\Marshallers\AWSQueryRequestMarshaller.tt" this.Write(", StringUtils.From"); #line default #line hidden #line 157 "C:\data\dev\sdk\AWSDotNetPublic.Xray\generator\ServiceClientGeneratorLib\Generators\Marshallers\AWSQueryRequestMarshaller.tt" this.Write(this.ToStringHelper.ToStringWithCulture(member.GetPrimitiveType())); #line default #line hidden #line 157 "C:\data\dev\sdk\AWSDotNetPublic.Xray\generator\ServiceClientGeneratorLib\Generators\Marshallers\AWSQueryRequestMarshaller.tt" this.Write("("); #line default #line hidden #line 157 "C:\data\dev\sdk\AWSDotNetPublic.Xray\generator\ServiceClientGeneratorLib\Generators\Marshallers\AWSQueryRequestMarshaller.tt" this.Write(this.ToStringHelper.ToStringWithCulture(memberProperty)); #line default #line hidden #line 157 "C:\data\dev\sdk\AWSDotNetPublic.Xray\generator\ServiceClientGeneratorLib\Generators\Marshallers\AWSQueryRequestMarshaller.tt" this.Write("));\r\n"); #line default #line hidden #line 158 "C:\data\dev\sdk\AWSDotNetPublic.Xray\generator\ServiceClientGeneratorLib\Generators\Marshallers\AWSQueryRequestMarshaller.tt" } else { #line default #line hidden #line 162 "C:\data\dev\sdk\AWSDotNetPublic.Xray\generator\ServiceClientGeneratorLib\Generators\Marshallers\AWSQueryRequestMarshaller.tt" this.Write(this.ToStringHelper.ToStringWithCulture(new string(' ', level * 4))); #line default #line hidden #line 162 "C:\data\dev\sdk\AWSDotNetPublic.Xray\generator\ServiceClientGeneratorLib\Generators\Marshallers\AWSQueryRequestMarshaller.tt" this.Write(" request.Parameters.Add("); #line default #line hidden #line 162 "C:\data\dev\sdk\AWSDotNetPublic.Xray\generator\ServiceClientGeneratorLib\Generators\Marshallers\AWSQueryRequestMarshaller.tt" this.Write(this.ToStringHelper.ToStringWithCulture(context)); #line default #line hidden #line 162 "C:\data\dev\sdk\AWSDotNetPublic.Xray\generator\ServiceClientGeneratorLib\Generators\Marshallers\AWSQueryRequestMarshaller.tt" this.Write(", "); #line default #line hidden #line 162 "C:\data\dev\sdk\AWSDotNetPublic.Xray\generator\ServiceClientGeneratorLib\Generators\Marshallers\AWSQueryRequestMarshaller.tt" this.Write(this.ToStringHelper.ToStringWithCulture(member.CustomMarshallerTransformation)); #line default #line hidden #line 162 "C:\data\dev\sdk\AWSDotNetPublic.Xray\generator\ServiceClientGeneratorLib\Generators\Marshallers\AWSQueryRequestMarshaller.tt" this.Write("("); #line default #line hidden #line 162 "C:\data\dev\sdk\AWSDotNetPublic.Xray\generator\ServiceClientGeneratorLib\Generators\Marshallers\AWSQueryRequestMarshaller.tt" this.Write(this.ToStringHelper.ToStringWithCulture(memberProperty)); #line default #line hidden #line 162 "C:\data\dev\sdk\AWSDotNetPublic.Xray\generator\ServiceClientGeneratorLib\Generators\Marshallers\AWSQueryRequestMarshaller.tt" this.Write("));\r\n"); #line default #line hidden #line 163 "C:\data\dev\sdk\AWSDotNetPublic.Xray\generator\ServiceClientGeneratorLib\Generators\Marshallers\AWSQueryRequestMarshaller.tt" } if (member.IsIdempotent) { #line default #line hidden #line 168 "C:\data\dev\sdk\AWSDotNetPublic.Xray\generator\ServiceClientGeneratorLib\Generators\Marshallers\AWSQueryRequestMarshaller.tt" this.Write(this.ToStringHelper.ToStringWithCulture(new string(' ', level * 4))); #line default #line hidden #line 168 "C:\data\dev\sdk\AWSDotNetPublic.Xray\generator\ServiceClientGeneratorLib\Generators\Marshallers\AWSQueryRequestMarshaller.tt" this.Write(" \t\t\t }\r\n"); #line default #line hidden #line 169 "C:\data\dev\sdk\AWSDotNetPublic.Xray\generator\ServiceClientGeneratorLib\Generators\Marshallers\AWSQueryRequestMarshaller.tt" this.Write(this.ToStringHelper.ToStringWithCulture(new string(' ', level * 4))); #line default #line hidden #line 169 "C:\data\dev\sdk\AWSDotNetPublic.Xray\generator\ServiceClientGeneratorLib\Generators\Marshallers\AWSQueryRequestMarshaller.tt" this.Write(" \t\t\t else if(!("); #line default #line hidden #line 169 "C:\data\dev\sdk\AWSDotNetPublic.Xray\generator\ServiceClientGeneratorLib\Generators\Marshallers\AWSQueryRequestMarshaller.tt" this.Write(this.ToStringHelper.ToStringWithCulture(variableName)); #line default #line hidden #line 169 "C:\data\dev\sdk\AWSDotNetPublic.Xray\generator\ServiceClientGeneratorLib\Generators\Marshallers\AWSQueryRequestMarshaller.tt" this.Write(".IsSet"); #line default #line hidden #line 169 "C:\data\dev\sdk\AWSDotNetPublic.Xray\generator\ServiceClientGeneratorLib\Generators\Marshallers\AWSQueryRequestMarshaller.tt" this.Write(this.ToStringHelper.ToStringWithCulture(member.PropertyName)); #line default #line hidden #line 169 "C:\data\dev\sdk\AWSDotNetPublic.Xray\generator\ServiceClientGeneratorLib\Generators\Marshallers\AWSQueryRequestMarshaller.tt" this.Write("()))\r\n"); #line default #line hidden #line 170 "C:\data\dev\sdk\AWSDotNetPublic.Xray\generator\ServiceClientGeneratorLib\Generators\Marshallers\AWSQueryRequestMarshaller.tt" this.Write(this.ToStringHelper.ToStringWithCulture(new string(' ', level * 4))); #line default #line hidden #line 170 "C:\data\dev\sdk\AWSDotNetPublic.Xray\generator\ServiceClientGeneratorLib\Generators\Marshallers\AWSQueryRequestMarshaller.tt" this.Write(" \t\t\t {\r\n"); #line default #line hidden #line 171 "C:\data\dev\sdk\AWSDotNetPublic.Xray\generator\ServiceClientGeneratorLib\Generators\Marshallers\AWSQueryRequestMarshaller.tt" this.Write(this.ToStringHelper.ToStringWithCulture(new string(' ', level * 4))); #line default #line hidden #line 171 "C:\data\dev\sdk\AWSDotNetPublic.Xray\generator\ServiceClientGeneratorLib\Generators\Marshallers\AWSQueryRequestMarshaller.tt" this.Write(" request.Parameters.Add("); #line default #line hidden #line 171 "C:\data\dev\sdk\AWSDotNetPublic.Xray\generator\ServiceClientGeneratorLib\Generators\Marshallers\AWSQueryRequestMarshaller.tt" this.Write(this.ToStringHelper.ToStringWithCulture(context)); #line default #line hidden #line 171 "C:\data\dev\sdk\AWSDotNetPublic.Xray\generator\ServiceClientGeneratorLib\Generators\Marshallers\AWSQueryRequestMarshaller.tt" this.Write(", StringUtils.FromString(Guid.NewGuid().ToString()));\r\n"); #line default #line hidden #line 172 "C:\data\dev\sdk\AWSDotNetPublic.Xray\generator\ServiceClientGeneratorLib\Generators\Marshallers\AWSQueryRequestMarshaller.tt" } } #line default #line hidden #line 176 "C:\data\dev\sdk\AWSDotNetPublic.Xray\generator\ServiceClientGeneratorLib\Generators\Marshallers\AWSQueryRequestMarshaller.tt" this.Write(this.ToStringHelper.ToStringWithCulture(new string(' ', level * 4))); #line default #line hidden #line 176 "C:\data\dev\sdk\AWSDotNetPublic.Xray\generator\ServiceClientGeneratorLib\Generators\Marshallers\AWSQueryRequestMarshaller.tt" this.Write(" }\r\n"); #line default #line hidden #line 177 "C:\data\dev\sdk\AWSDotNetPublic.Xray\generator\ServiceClientGeneratorLib\Generators\Marshallers\AWSQueryRequestMarshaller.tt" } }
void ProcessMembers(int level, string parameterContext, string variableName, IEnumerable <Member> members) { string variableNameFragment = variableName.Replace(".", string.Empty); foreach (var member in members) { if (GeneratorHelpers.UseCustomMarshall(member, this.Operation)) { continue; } var marshallName = GeneratorHelpers.DetermineAWSQueryMarshallName(member, this.Operation); #line default #line hidden #line 63 "C:\codebase\v3-master\AWSDotNetPublic\generator\ServiceClientGeneratorLib\Generators\Marshallers\AWSQueryRequestMarshaller.tt" this.Write(this.ToStringHelper.ToStringWithCulture(new string(' ', level * 4))); #line default #line hidden #line 63 "C:\codebase\v3-master\AWSDotNetPublic\generator\ServiceClientGeneratorLib\Generators\Marshallers\AWSQueryRequestMarshaller.tt" this.Write(" if("); #line default #line hidden #line 63 "C:\codebase\v3-master\AWSDotNetPublic\generator\ServiceClientGeneratorLib\Generators\Marshallers\AWSQueryRequestMarshaller.tt" this.Write(this.ToStringHelper.ToStringWithCulture(variableName)); #line default #line hidden #line 63 "C:\codebase\v3-master\AWSDotNetPublic\generator\ServiceClientGeneratorLib\Generators\Marshallers\AWSQueryRequestMarshaller.tt" this.Write(".IsSet"); #line default #line hidden #line 63 "C:\codebase\v3-master\AWSDotNetPublic\generator\ServiceClientGeneratorLib\Generators\Marshallers\AWSQueryRequestMarshaller.tt" this.Write(this.ToStringHelper.ToStringWithCulture(member.PropertyName)); #line default #line hidden #line 63 "C:\codebase\v3-master\AWSDotNetPublic\generator\ServiceClientGeneratorLib\Generators\Marshallers\AWSQueryRequestMarshaller.tt" this.Write("())\r\n"); #line default #line hidden #line 64 "C:\codebase\v3-master\AWSDotNetPublic\generator\ServiceClientGeneratorLib\Generators\Marshallers\AWSQueryRequestMarshaller.tt" this.Write(this.ToStringHelper.ToStringWithCulture(new string(' ', level * 4))); #line default #line hidden #line 64 "C:\codebase\v3-master\AWSDotNetPublic\generator\ServiceClientGeneratorLib\Generators\Marshallers\AWSQueryRequestMarshaller.tt" this.Write(" {\r\n"); #line default #line hidden #line 65 "C:\codebase\v3-master\AWSDotNetPublic\generator\ServiceClientGeneratorLib\Generators\Marshallers\AWSQueryRequestMarshaller.tt" if (member.IsList) { string context = ComposeContext(parameterContext, marshallName); string listItemContext = ComposeContext(context, GeneratorHelpers.DetermineAWSQueryListMemberPrefix(member), variableNameFragment + "listValueIndex", GeneratorHelpers.DetermineAWSQueryListMemberSuffix(this.Operation, member)); #line default #line hidden #line 74 "C:\codebase\v3-master\AWSDotNetPublic\generator\ServiceClientGeneratorLib\Generators\Marshallers\AWSQueryRequestMarshaller.tt" this.Write(this.ToStringHelper.ToStringWithCulture(new string(' ', level * 4))); #line default #line hidden #line 74 "C:\codebase\v3-master\AWSDotNetPublic\generator\ServiceClientGeneratorLib\Generators\Marshallers\AWSQueryRequestMarshaller.tt" this.Write(" int "); #line default #line hidden #line 74 "C:\codebase\v3-master\AWSDotNetPublic\generator\ServiceClientGeneratorLib\Generators\Marshallers\AWSQueryRequestMarshaller.tt" this.Write(this.ToStringHelper.ToStringWithCulture(variableNameFragment)); #line default #line hidden #line 74 "C:\codebase\v3-master\AWSDotNetPublic\generator\ServiceClientGeneratorLib\Generators\Marshallers\AWSQueryRequestMarshaller.tt" this.Write("listValueIndex = 1;\r\n"); #line default #line hidden #line 75 "C:\codebase\v3-master\AWSDotNetPublic\generator\ServiceClientGeneratorLib\Generators\Marshallers\AWSQueryRequestMarshaller.tt" this.Write(this.ToStringHelper.ToStringWithCulture(new string(' ', level * 4))); #line default #line hidden #line 75 "C:\codebase\v3-master\AWSDotNetPublic\generator\ServiceClientGeneratorLib\Generators\Marshallers\AWSQueryRequestMarshaller.tt" this.Write(" foreach(var "); #line default #line hidden #line 75 "C:\codebase\v3-master\AWSDotNetPublic\generator\ServiceClientGeneratorLib\Generators\Marshallers\AWSQueryRequestMarshaller.tt" this.Write(this.ToStringHelper.ToStringWithCulture(variableNameFragment)); #line default #line hidden #line 75 "C:\codebase\v3-master\AWSDotNetPublic\generator\ServiceClientGeneratorLib\Generators\Marshallers\AWSQueryRequestMarshaller.tt" this.Write("listValue in "); #line default #line hidden #line 75 "C:\codebase\v3-master\AWSDotNetPublic\generator\ServiceClientGeneratorLib\Generators\Marshallers\AWSQueryRequestMarshaller.tt" this.Write(this.ToStringHelper.ToStringWithCulture(variableName)); #line default #line hidden #line 75 "C:\codebase\v3-master\AWSDotNetPublic\generator\ServiceClientGeneratorLib\Generators\Marshallers\AWSQueryRequestMarshaller.tt" this.Write("."); #line default #line hidden #line 75 "C:\codebase\v3-master\AWSDotNetPublic\generator\ServiceClientGeneratorLib\Generators\Marshallers\AWSQueryRequestMarshaller.tt" this.Write(this.ToStringHelper.ToStringWithCulture(member.PropertyName)); #line default #line hidden #line 75 "C:\codebase\v3-master\AWSDotNetPublic\generator\ServiceClientGeneratorLib\Generators\Marshallers\AWSQueryRequestMarshaller.tt" this.Write(")\r\n"); #line default #line hidden #line 76 "C:\codebase\v3-master\AWSDotNetPublic\generator\ServiceClientGeneratorLib\Generators\Marshallers\AWSQueryRequestMarshaller.tt" this.Write(this.ToStringHelper.ToStringWithCulture(new string(' ', level * 4))); #line default #line hidden #line 76 "C:\codebase\v3-master\AWSDotNetPublic\generator\ServiceClientGeneratorLib\Generators\Marshallers\AWSQueryRequestMarshaller.tt" this.Write(" {\r\n"); #line default #line hidden #line 77 "C:\codebase\v3-master\AWSDotNetPublic\generator\ServiceClientGeneratorLib\Generators\Marshallers\AWSQueryRequestMarshaller.tt" if (member.Shape.ListShape.IsStructure) { ProcessMembers(level + 2, listItemContext, variableNameFragment + "listValue", member.Shape.ListShape.Members); } else { if (string.IsNullOrEmpty(member.CustomMarshallerTransformation)) { #line default #line hidden #line 87 "C:\codebase\v3-master\AWSDotNetPublic\generator\ServiceClientGeneratorLib\Generators\Marshallers\AWSQueryRequestMarshaller.tt" this.Write(this.ToStringHelper.ToStringWithCulture(new string(' ', level * 4))); #line default #line hidden #line 87 "C:\codebase\v3-master\AWSDotNetPublic\generator\ServiceClientGeneratorLib\Generators\Marshallers\AWSQueryRequestMarshaller.tt" this.Write(" request.Parameters.Add("); #line default #line hidden #line 87 "C:\codebase\v3-master\AWSDotNetPublic\generator\ServiceClientGeneratorLib\Generators\Marshallers\AWSQueryRequestMarshaller.tt" this.Write(this.ToStringHelper.ToStringWithCulture(listItemContext)); #line default #line hidden #line 87 "C:\codebase\v3-master\AWSDotNetPublic\generator\ServiceClientGeneratorLib\Generators\Marshallers\AWSQueryRequestMarshaller.tt" this.Write(", StringUtils.From"); #line default #line hidden #line 87 "C:\codebase\v3-master\AWSDotNetPublic\generator\ServiceClientGeneratorLib\Generators\Marshallers\AWSQueryRequestMarshaller.tt" this.Write(this.ToStringHelper.ToStringWithCulture(member.Shape.ListShape.GetPrimitiveType())); #line default #line hidden #line 87 "C:\codebase\v3-master\AWSDotNetPublic\generator\ServiceClientGeneratorLib\Generators\Marshallers\AWSQueryRequestMarshaller.tt" this.Write("("); #line default #line hidden #line 87 "C:\codebase\v3-master\AWSDotNetPublic\generator\ServiceClientGeneratorLib\Generators\Marshallers\AWSQueryRequestMarshaller.tt" this.Write(this.ToStringHelper.ToStringWithCulture(variableNameFragment)); #line default #line hidden #line 87 "C:\codebase\v3-master\AWSDotNetPublic\generator\ServiceClientGeneratorLib\Generators\Marshallers\AWSQueryRequestMarshaller.tt" this.Write("listValue));\r\n"); #line default #line hidden #line 88 "C:\codebase\v3-master\AWSDotNetPublic\generator\ServiceClientGeneratorLib\Generators\Marshallers\AWSQueryRequestMarshaller.tt" } else { #line default #line hidden #line 93 "C:\codebase\v3-master\AWSDotNetPublic\generator\ServiceClientGeneratorLib\Generators\Marshallers\AWSQueryRequestMarshaller.tt" this.Write(this.ToStringHelper.ToStringWithCulture(new string(' ', level * 4))); #line default #line hidden #line 93 "C:\codebase\v3-master\AWSDotNetPublic\generator\ServiceClientGeneratorLib\Generators\Marshallers\AWSQueryRequestMarshaller.tt" this.Write(" request.Parameters.Add("); #line default #line hidden #line 93 "C:\codebase\v3-master\AWSDotNetPublic\generator\ServiceClientGeneratorLib\Generators\Marshallers\AWSQueryRequestMarshaller.tt" this.Write(this.ToStringHelper.ToStringWithCulture(listItemContext)); #line default #line hidden #line 93 "C:\codebase\v3-master\AWSDotNetPublic\generator\ServiceClientGeneratorLib\Generators\Marshallers\AWSQueryRequestMarshaller.tt" this.Write(", "); #line default #line hidden #line 93 "C:\codebase\v3-master\AWSDotNetPublic\generator\ServiceClientGeneratorLib\Generators\Marshallers\AWSQueryRequestMarshaller.tt" this.Write(this.ToStringHelper.ToStringWithCulture(member.CustomMarshallerTransformation + "(" + variableNameFragment + "listValue)")); #line default #line hidden #line 93 "C:\codebase\v3-master\AWSDotNetPublic\generator\ServiceClientGeneratorLib\Generators\Marshallers\AWSQueryRequestMarshaller.tt" this.Write(");\r\n"); #line default #line hidden #line 94 "C:\codebase\v3-master\AWSDotNetPublic\generator\ServiceClientGeneratorLib\Generators\Marshallers\AWSQueryRequestMarshaller.tt" } } #line default #line hidden #line 98 "C:\codebase\v3-master\AWSDotNetPublic\generator\ServiceClientGeneratorLib\Generators\Marshallers\AWSQueryRequestMarshaller.tt" this.Write(this.ToStringHelper.ToStringWithCulture(new string(' ', level * 4))); #line default #line hidden #line 98 "C:\codebase\v3-master\AWSDotNetPublic\generator\ServiceClientGeneratorLib\Generators\Marshallers\AWSQueryRequestMarshaller.tt" this.Write(" "); #line default #line hidden #line 98 "C:\codebase\v3-master\AWSDotNetPublic\generator\ServiceClientGeneratorLib\Generators\Marshallers\AWSQueryRequestMarshaller.tt" this.Write(this.ToStringHelper.ToStringWithCulture(variableNameFragment)); #line default #line hidden #line 98 "C:\codebase\v3-master\AWSDotNetPublic\generator\ServiceClientGeneratorLib\Generators\Marshallers\AWSQueryRequestMarshaller.tt" this.Write("listValueIndex++;\r\n"); #line default #line hidden #line 99 "C:\codebase\v3-master\AWSDotNetPublic\generator\ServiceClientGeneratorLib\Generators\Marshallers\AWSQueryRequestMarshaller.tt" this.Write(this.ToStringHelper.ToStringWithCulture(new string(' ', level * 4))); #line default #line hidden #line 99 "C:\codebase\v3-master\AWSDotNetPublic\generator\ServiceClientGeneratorLib\Generators\Marshallers\AWSQueryRequestMarshaller.tt" this.Write(" }\r\n"); #line default #line hidden #line 100 "C:\codebase\v3-master\AWSDotNetPublic\generator\ServiceClientGeneratorLib\Generators\Marshallers\AWSQueryRequestMarshaller.tt" } else if (member.IsMap) { string context = ComposeContext(parameterContext, marshallName); string mapItemContext = ComposeContext(context, member.Shape.IsFlattened ? "" : "entry", "mapIndex"); string mapKeyContext = ComposeContext(mapItemContext, member.Shape.KeyMarshallName); string mapValueContext = ComposeContext(mapItemContext, member.Shape.ValueMarshallName); #line default #line hidden #line 109 "C:\codebase\v3-master\AWSDotNetPublic\generator\ServiceClientGeneratorLib\Generators\Marshallers\AWSQueryRequestMarshaller.tt" this.Write(this.ToStringHelper.ToStringWithCulture(new string(' ', level * 4))); #line default #line hidden #line 109 "C:\codebase\v3-master\AWSDotNetPublic\generator\ServiceClientGeneratorLib\Generators\Marshallers\AWSQueryRequestMarshaller.tt" this.Write(" int mapIndex = 1;\r\n"); #line default #line hidden #line 110 "C:\codebase\v3-master\AWSDotNetPublic\generator\ServiceClientGeneratorLib\Generators\Marshallers\AWSQueryRequestMarshaller.tt" this.Write(this.ToStringHelper.ToStringWithCulture(new string(' ', level * 4))); #line default #line hidden #line 110 "C:\codebase\v3-master\AWSDotNetPublic\generator\ServiceClientGeneratorLib\Generators\Marshallers\AWSQueryRequestMarshaller.tt" this.Write(" foreach(var key in "); #line default #line hidden #line 110 "C:\codebase\v3-master\AWSDotNetPublic\generator\ServiceClientGeneratorLib\Generators\Marshallers\AWSQueryRequestMarshaller.tt" this.Write(this.ToStringHelper.ToStringWithCulture(variableName)); #line default #line hidden #line 110 "C:\codebase\v3-master\AWSDotNetPublic\generator\ServiceClientGeneratorLib\Generators\Marshallers\AWSQueryRequestMarshaller.tt" this.Write("."); #line default #line hidden #line 110 "C:\codebase\v3-master\AWSDotNetPublic\generator\ServiceClientGeneratorLib\Generators\Marshallers\AWSQueryRequestMarshaller.tt" this.Write(this.ToStringHelper.ToStringWithCulture(member.PropertyName)); #line default #line hidden #line 110 "C:\codebase\v3-master\AWSDotNetPublic\generator\ServiceClientGeneratorLib\Generators\Marshallers\AWSQueryRequestMarshaller.tt" this.Write(".Keys)\r\n"); #line default #line hidden #line 111 "C:\codebase\v3-master\AWSDotNetPublic\generator\ServiceClientGeneratorLib\Generators\Marshallers\AWSQueryRequestMarshaller.tt" this.Write(this.ToStringHelper.ToStringWithCulture(new string(' ', level * 4))); #line default #line hidden #line 111 "C:\codebase\v3-master\AWSDotNetPublic\generator\ServiceClientGeneratorLib\Generators\Marshallers\AWSQueryRequestMarshaller.tt" this.Write(" {\r\n"); #line default #line hidden #line 112 "C:\codebase\v3-master\AWSDotNetPublic\generator\ServiceClientGeneratorLib\Generators\Marshallers\AWSQueryRequestMarshaller.tt" this.Write(this.ToStringHelper.ToStringWithCulture(new string(' ', level * 4))); #line default #line hidden #line 112 "C:\codebase\v3-master\AWSDotNetPublic\generator\ServiceClientGeneratorLib\Generators\Marshallers\AWSQueryRequestMarshaller.tt" this.Write(" "); #line default #line hidden #line 112 "C:\codebase\v3-master\AWSDotNetPublic\generator\ServiceClientGeneratorLib\Generators\Marshallers\AWSQueryRequestMarshaller.tt" this.Write(this.ToStringHelper.ToStringWithCulture(member.Shape.ValueShape.IsStructure ? member.Shape.ValueShape.Name : member.Shape.ValueShape.GetPrimitiveType())); #line default #line hidden #line 112 "C:\codebase\v3-master\AWSDotNetPublic\generator\ServiceClientGeneratorLib\Generators\Marshallers\AWSQueryRequestMarshaller.tt" this.Write(" value;\r\n"); #line default #line hidden #line 113 "C:\codebase\v3-master\AWSDotNetPublic\generator\ServiceClientGeneratorLib\Generators\Marshallers\AWSQueryRequestMarshaller.tt" this.Write(this.ToStringHelper.ToStringWithCulture(new string(' ', level * 4))); #line default #line hidden #line 113 "C:\codebase\v3-master\AWSDotNetPublic\generator\ServiceClientGeneratorLib\Generators\Marshallers\AWSQueryRequestMarshaller.tt" this.Write(" bool hasValue = "); #line default #line hidden #line 113 "C:\codebase\v3-master\AWSDotNetPublic\generator\ServiceClientGeneratorLib\Generators\Marshallers\AWSQueryRequestMarshaller.tt" this.Write(this.ToStringHelper.ToStringWithCulture(variableName)); #line default #line hidden #line 113 "C:\codebase\v3-master\AWSDotNetPublic\generator\ServiceClientGeneratorLib\Generators\Marshallers\AWSQueryRequestMarshaller.tt" this.Write("."); #line default #line hidden #line 113 "C:\codebase\v3-master\AWSDotNetPublic\generator\ServiceClientGeneratorLib\Generators\Marshallers\AWSQueryRequestMarshaller.tt" this.Write(this.ToStringHelper.ToStringWithCulture(member.PropertyName)); #line default #line hidden #line 113 "C:\codebase\v3-master\AWSDotNetPublic\generator\ServiceClientGeneratorLib\Generators\Marshallers\AWSQueryRequestMarshaller.tt" this.Write(".TryGetValue(key, out value);\r\n"); #line default #line hidden #line 114 "C:\codebase\v3-master\AWSDotNetPublic\generator\ServiceClientGeneratorLib\Generators\Marshallers\AWSQueryRequestMarshaller.tt" this.Write(this.ToStringHelper.ToStringWithCulture(new string(' ', level * 4))); #line default #line hidden #line 114 "C:\codebase\v3-master\AWSDotNetPublic\generator\ServiceClientGeneratorLib\Generators\Marshallers\AWSQueryRequestMarshaller.tt" this.Write(" request.Parameters.Add("); #line default #line hidden #line 114 "C:\codebase\v3-master\AWSDotNetPublic\generator\ServiceClientGeneratorLib\Generators\Marshallers\AWSQueryRequestMarshaller.tt" this.Write(this.ToStringHelper.ToStringWithCulture(mapKeyContext)); #line default #line hidden #line 114 "C:\codebase\v3-master\AWSDotNetPublic\generator\ServiceClientGeneratorLib\Generators\Marshallers\AWSQueryRequestMarshaller.tt" this.Write(", StringUtils.From"); #line default #line hidden #line 114 "C:\codebase\v3-master\AWSDotNetPublic\generator\ServiceClientGeneratorLib\Generators\Marshallers\AWSQueryRequestMarshaller.tt" this.Write(this.ToStringHelper.ToStringWithCulture(member.Shape.KeyShape.GetPrimitiveType())); #line default #line hidden #line 114 "C:\codebase\v3-master\AWSDotNetPublic\generator\ServiceClientGeneratorLib\Generators\Marshallers\AWSQueryRequestMarshaller.tt" this.Write("(key));\r\n"); #line default #line hidden #line 115 "C:\codebase\v3-master\AWSDotNetPublic\generator\ServiceClientGeneratorLib\Generators\Marshallers\AWSQueryRequestMarshaller.tt" this.Write(this.ToStringHelper.ToStringWithCulture(new string(' ', level * 4))); #line default #line hidden #line 115 "C:\codebase\v3-master\AWSDotNetPublic\generator\ServiceClientGeneratorLib\Generators\Marshallers\AWSQueryRequestMarshaller.tt" this.Write(" if (hasValue)\r\n"); #line default #line hidden #line 116 "C:\codebase\v3-master\AWSDotNetPublic\generator\ServiceClientGeneratorLib\Generators\Marshallers\AWSQueryRequestMarshaller.tt" this.Write(this.ToStringHelper.ToStringWithCulture(new string(' ', level * 4))); #line default #line hidden #line 116 "C:\codebase\v3-master\AWSDotNetPublic\generator\ServiceClientGeneratorLib\Generators\Marshallers\AWSQueryRequestMarshaller.tt" this.Write(" {\r\n"); #line default #line hidden #line 117 "C:\codebase\v3-master\AWSDotNetPublic\generator\ServiceClientGeneratorLib\Generators\Marshallers\AWSQueryRequestMarshaller.tt" if (member.Shape.ValueShape.IsStructure) { ProcessMembers(level + 3, mapValueContext, "value", member.Shape.ValueShape.Members); } else { if (string.IsNullOrEmpty(member.CustomMarshallerTransformation)) { #line default #line hidden #line 127 "C:\codebase\v3-master\AWSDotNetPublic\generator\ServiceClientGeneratorLib\Generators\Marshallers\AWSQueryRequestMarshaller.tt" this.Write(this.ToStringHelper.ToStringWithCulture(new string(' ', level * 4))); #line default #line hidden #line 127 "C:\codebase\v3-master\AWSDotNetPublic\generator\ServiceClientGeneratorLib\Generators\Marshallers\AWSQueryRequestMarshaller.tt" this.Write(" request.Parameters.Add("); #line default #line hidden #line 127 "C:\codebase\v3-master\AWSDotNetPublic\generator\ServiceClientGeneratorLib\Generators\Marshallers\AWSQueryRequestMarshaller.tt" this.Write(this.ToStringHelper.ToStringWithCulture(mapValueContext)); #line default #line hidden #line 127 "C:\codebase\v3-master\AWSDotNetPublic\generator\ServiceClientGeneratorLib\Generators\Marshallers\AWSQueryRequestMarshaller.tt" this.Write(", StringUtils.From"); #line default #line hidden #line 127 "C:\codebase\v3-master\AWSDotNetPublic\generator\ServiceClientGeneratorLib\Generators\Marshallers\AWSQueryRequestMarshaller.tt" this.Write(this.ToStringHelper.ToStringWithCulture(member.Shape.ValueShape.GetPrimitiveType())); #line default #line hidden #line 127 "C:\codebase\v3-master\AWSDotNetPublic\generator\ServiceClientGeneratorLib\Generators\Marshallers\AWSQueryRequestMarshaller.tt" this.Write("(value));\r\n"); #line default #line hidden #line 128 "C:\codebase\v3-master\AWSDotNetPublic\generator\ServiceClientGeneratorLib\Generators\Marshallers\AWSQueryRequestMarshaller.tt" } else { #line default #line hidden #line 132 "C:\codebase\v3-master\AWSDotNetPublic\generator\ServiceClientGeneratorLib\Generators\Marshallers\AWSQueryRequestMarshaller.tt" this.Write(this.ToStringHelper.ToStringWithCulture(new string(' ', level * 4))); #line default #line hidden #line 132 "C:\codebase\v3-master\AWSDotNetPublic\generator\ServiceClientGeneratorLib\Generators\Marshallers\AWSQueryRequestMarshaller.tt" this.Write(" request.Parameters.Add("); #line default #line hidden #line 132 "C:\codebase\v3-master\AWSDotNetPublic\generator\ServiceClientGeneratorLib\Generators\Marshallers\AWSQueryRequestMarshaller.tt" this.Write(this.ToStringHelper.ToStringWithCulture(mapValueContext)); #line default #line hidden #line 132 "C:\codebase\v3-master\AWSDotNetPublic\generator\ServiceClientGeneratorLib\Generators\Marshallers\AWSQueryRequestMarshaller.tt" this.Write(", "); #line default #line hidden #line 132 "C:\codebase\v3-master\AWSDotNetPublic\generator\ServiceClientGeneratorLib\Generators\Marshallers\AWSQueryRequestMarshaller.tt" this.Write(this.ToStringHelper.ToStringWithCulture(member.CustomMarshallerTransformation + "(value)")); #line default #line hidden #line 132 "C:\codebase\v3-master\AWSDotNetPublic\generator\ServiceClientGeneratorLib\Generators\Marshallers\AWSQueryRequestMarshaller.tt" this.Write(");\r\n"); #line default #line hidden #line 133 "C:\codebase\v3-master\AWSDotNetPublic\generator\ServiceClientGeneratorLib\Generators\Marshallers\AWSQueryRequestMarshaller.tt" } } #line default #line hidden #line 137 "C:\codebase\v3-master\AWSDotNetPublic\generator\ServiceClientGeneratorLib\Generators\Marshallers\AWSQueryRequestMarshaller.tt" this.Write(this.ToStringHelper.ToStringWithCulture(new string(' ', level * 4))); #line default #line hidden #line 137 "C:\codebase\v3-master\AWSDotNetPublic\generator\ServiceClientGeneratorLib\Generators\Marshallers\AWSQueryRequestMarshaller.tt" this.Write(" }\r\n"); #line default #line hidden #line 138 "C:\codebase\v3-master\AWSDotNetPublic\generator\ServiceClientGeneratorLib\Generators\Marshallers\AWSQueryRequestMarshaller.tt" this.Write(this.ToStringHelper.ToStringWithCulture(new string(' ', level * 4))); #line default #line hidden #line 138 "C:\codebase\v3-master\AWSDotNetPublic\generator\ServiceClientGeneratorLib\Generators\Marshallers\AWSQueryRequestMarshaller.tt" this.Write(" mapIndex++;\r\n"); #line default #line hidden #line 139 "C:\codebase\v3-master\AWSDotNetPublic\generator\ServiceClientGeneratorLib\Generators\Marshallers\AWSQueryRequestMarshaller.tt" this.Write(this.ToStringHelper.ToStringWithCulture(new string(' ', level * 4))); #line default #line hidden #line 139 "C:\codebase\v3-master\AWSDotNetPublic\generator\ServiceClientGeneratorLib\Generators\Marshallers\AWSQueryRequestMarshaller.tt" this.Write(" }\r\n"); #line default #line hidden #line 140 "C:\codebase\v3-master\AWSDotNetPublic\generator\ServiceClientGeneratorLib\Generators\Marshallers\AWSQueryRequestMarshaller.tt" } else if (member.IsStructure) { string context = ComposeContext(parameterContext, marshallName); ProcessMembers(level + 1, context, variableName + "." + member.PropertyName, member.Shape.Members); } else { string context = ComposeContext(parameterContext, marshallName); if (string.IsNullOrEmpty(member.CustomMarshallerTransformation)) { #line default #line hidden #line 153 "C:\codebase\v3-master\AWSDotNetPublic\generator\ServiceClientGeneratorLib\Generators\Marshallers\AWSQueryRequestMarshaller.tt" this.Write(this.ToStringHelper.ToStringWithCulture(new string(' ', level * 4))); #line default #line hidden #line 153 "C:\codebase\v3-master\AWSDotNetPublic\generator\ServiceClientGeneratorLib\Generators\Marshallers\AWSQueryRequestMarshaller.tt" this.Write(" request.Parameters.Add("); #line default #line hidden #line 153 "C:\codebase\v3-master\AWSDotNetPublic\generator\ServiceClientGeneratorLib\Generators\Marshallers\AWSQueryRequestMarshaller.tt" this.Write(this.ToStringHelper.ToStringWithCulture(context)); #line default #line hidden #line 153 "C:\codebase\v3-master\AWSDotNetPublic\generator\ServiceClientGeneratorLib\Generators\Marshallers\AWSQueryRequestMarshaller.tt" this.Write(", StringUtils.From"); #line default #line hidden #line 153 "C:\codebase\v3-master\AWSDotNetPublic\generator\ServiceClientGeneratorLib\Generators\Marshallers\AWSQueryRequestMarshaller.tt" this.Write(this.ToStringHelper.ToStringWithCulture(member.GetPrimitiveType())); #line default #line hidden #line 153 "C:\codebase\v3-master\AWSDotNetPublic\generator\ServiceClientGeneratorLib\Generators\Marshallers\AWSQueryRequestMarshaller.tt" this.Write("("); #line default #line hidden #line 153 "C:\codebase\v3-master\AWSDotNetPublic\generator\ServiceClientGeneratorLib\Generators\Marshallers\AWSQueryRequestMarshaller.tt" this.Write(this.ToStringHelper.ToStringWithCulture(variableName)); #line default #line hidden #line 153 "C:\codebase\v3-master\AWSDotNetPublic\generator\ServiceClientGeneratorLib\Generators\Marshallers\AWSQueryRequestMarshaller.tt" this.Write("."); #line default #line hidden #line 153 "C:\codebase\v3-master\AWSDotNetPublic\generator\ServiceClientGeneratorLib\Generators\Marshallers\AWSQueryRequestMarshaller.tt" this.Write(this.ToStringHelper.ToStringWithCulture(member.PropertyName)); #line default #line hidden #line 153 "C:\codebase\v3-master\AWSDotNetPublic\generator\ServiceClientGeneratorLib\Generators\Marshallers\AWSQueryRequestMarshaller.tt" this.Write("));\r\n"); #line default #line hidden #line 154 "C:\codebase\v3-master\AWSDotNetPublic\generator\ServiceClientGeneratorLib\Generators\Marshallers\AWSQueryRequestMarshaller.tt" } else { #line default #line hidden #line 158 "C:\codebase\v3-master\AWSDotNetPublic\generator\ServiceClientGeneratorLib\Generators\Marshallers\AWSQueryRequestMarshaller.tt" this.Write(this.ToStringHelper.ToStringWithCulture(new string(' ', level * 4))); #line default #line hidden #line 158 "C:\codebase\v3-master\AWSDotNetPublic\generator\ServiceClientGeneratorLib\Generators\Marshallers\AWSQueryRequestMarshaller.tt" this.Write(" request.Parameters.Add("); #line default #line hidden #line 158 "C:\codebase\v3-master\AWSDotNetPublic\generator\ServiceClientGeneratorLib\Generators\Marshallers\AWSQueryRequestMarshaller.tt" this.Write(this.ToStringHelper.ToStringWithCulture(context)); #line default #line hidden #line 158 "C:\codebase\v3-master\AWSDotNetPublic\generator\ServiceClientGeneratorLib\Generators\Marshallers\AWSQueryRequestMarshaller.tt" this.Write(", "); #line default #line hidden #line 158 "C:\codebase\v3-master\AWSDotNetPublic\generator\ServiceClientGeneratorLib\Generators\Marshallers\AWSQueryRequestMarshaller.tt" this.Write(this.ToStringHelper.ToStringWithCulture(member.CustomMarshallerTransformation + "(" + variableName + "." + member.PropertyName + ")")); #line default #line hidden #line 158 "C:\codebase\v3-master\AWSDotNetPublic\generator\ServiceClientGeneratorLib\Generators\Marshallers\AWSQueryRequestMarshaller.tt" this.Write(");\r\n"); #line default #line hidden #line 159 "C:\codebase\v3-master\AWSDotNetPublic\generator\ServiceClientGeneratorLib\Generators\Marshallers\AWSQueryRequestMarshaller.tt" } } #line default #line hidden #line 163 "C:\codebase\v3-master\AWSDotNetPublic\generator\ServiceClientGeneratorLib\Generators\Marshallers\AWSQueryRequestMarshaller.tt" this.Write(this.ToStringHelper.ToStringWithCulture(new string(' ', level * 4))); #line default #line hidden #line 163 "C:\codebase\v3-master\AWSDotNetPublic\generator\ServiceClientGeneratorLib\Generators\Marshallers\AWSQueryRequestMarshaller.tt" this.Write(" }\r\n"); #line default #line hidden #line 164 "C:\codebase\v3-master\AWSDotNetPublic\generator\ServiceClientGeneratorLib\Generators\Marshallers\AWSQueryRequestMarshaller.tt" } }
void ProcessMembers(int level, string parameterContext, string variableName, IEnumerable <Member> members) { string variableNameFragment = variableName.Replace(".", string.Empty); foreach (var member in members) { if (GeneratorHelpers.UseCustomMarshall(member, this.Operation)) { continue; } var marshallName = GeneratorHelpers.DetermineAWSQueryMarshallName(member, this.Operation); #line default #line hidden #line 53 "C:\dev\net\runtime.rebase\sdk\src\ServiceClientGenerator\Generators\AWSQueryRequestMarshaller.tt" this.Write(this.ToStringHelper.ToStringWithCulture(new string(' ', level * 4))); #line default #line hidden #line 53 "C:\dev\net\runtime.rebase\sdk\src\ServiceClientGenerator\Generators\AWSQueryRequestMarshaller.tt" this.Write(" if("); #line default #line hidden #line 53 "C:\dev\net\runtime.rebase\sdk\src\ServiceClientGenerator\Generators\AWSQueryRequestMarshaller.tt" this.Write(this.ToStringHelper.ToStringWithCulture(variableName)); #line default #line hidden #line 53 "C:\dev\net\runtime.rebase\sdk\src\ServiceClientGenerator\Generators\AWSQueryRequestMarshaller.tt" this.Write(".IsSet"); #line default #line hidden #line 53 "C:\dev\net\runtime.rebase\sdk\src\ServiceClientGenerator\Generators\AWSQueryRequestMarshaller.tt" this.Write(this.ToStringHelper.ToStringWithCulture(member.PropertyName)); #line default #line hidden #line 53 "C:\dev\net\runtime.rebase\sdk\src\ServiceClientGenerator\Generators\AWSQueryRequestMarshaller.tt" this.Write("())\r\n"); #line default #line hidden #line 54 "C:\dev\net\runtime.rebase\sdk\src\ServiceClientGenerator\Generators\AWSQueryRequestMarshaller.tt" this.Write(this.ToStringHelper.ToStringWithCulture(new string(' ', level * 4))); #line default #line hidden #line 54 "C:\dev\net\runtime.rebase\sdk\src\ServiceClientGenerator\Generators\AWSQueryRequestMarshaller.tt" this.Write(" {\r\n"); #line default #line hidden #line 55 "C:\dev\net\runtime.rebase\sdk\src\ServiceClientGenerator\Generators\AWSQueryRequestMarshaller.tt" if (member.IsList) { string context = ComposeContext(parameterContext, marshallName); string listItemContext = ComposeContext(context, GeneratorHelpers.DetermineAWSQueryListMemberPrefix(member), variableNameFragment + "listValueIndex", GeneratorHelpers.DetermineAWSQueryListMemberSuffix(this.Operation, member)); #line default #line hidden #line 64 "C:\dev\net\runtime.rebase\sdk\src\ServiceClientGenerator\Generators\AWSQueryRequestMarshaller.tt" this.Write(this.ToStringHelper.ToStringWithCulture(new string(' ', level * 4))); #line default #line hidden #line 64 "C:\dev\net\runtime.rebase\sdk\src\ServiceClientGenerator\Generators\AWSQueryRequestMarshaller.tt" this.Write(" int "); #line default #line hidden #line 64 "C:\dev\net\runtime.rebase\sdk\src\ServiceClientGenerator\Generators\AWSQueryRequestMarshaller.tt" this.Write(this.ToStringHelper.ToStringWithCulture(variableNameFragment)); #line default #line hidden #line 64 "C:\dev\net\runtime.rebase\sdk\src\ServiceClientGenerator\Generators\AWSQueryRequestMarshaller.tt" this.Write("listValueIndex = 1;\r\n"); #line default #line hidden #line 65 "C:\dev\net\runtime.rebase\sdk\src\ServiceClientGenerator\Generators\AWSQueryRequestMarshaller.tt" this.Write(this.ToStringHelper.ToStringWithCulture(new string(' ', level * 4))); #line default #line hidden #line 65 "C:\dev\net\runtime.rebase\sdk\src\ServiceClientGenerator\Generators\AWSQueryRequestMarshaller.tt" this.Write(" foreach(var "); #line default #line hidden #line 65 "C:\dev\net\runtime.rebase\sdk\src\ServiceClientGenerator\Generators\AWSQueryRequestMarshaller.tt" this.Write(this.ToStringHelper.ToStringWithCulture(variableNameFragment)); #line default #line hidden #line 65 "C:\dev\net\runtime.rebase\sdk\src\ServiceClientGenerator\Generators\AWSQueryRequestMarshaller.tt" this.Write("listValue in "); #line default #line hidden #line 65 "C:\dev\net\runtime.rebase\sdk\src\ServiceClientGenerator\Generators\AWSQueryRequestMarshaller.tt" this.Write(this.ToStringHelper.ToStringWithCulture(variableName)); #line default #line hidden #line 65 "C:\dev\net\runtime.rebase\sdk\src\ServiceClientGenerator\Generators\AWSQueryRequestMarshaller.tt" this.Write("."); #line default #line hidden #line 65 "C:\dev\net\runtime.rebase\sdk\src\ServiceClientGenerator\Generators\AWSQueryRequestMarshaller.tt" this.Write(this.ToStringHelper.ToStringWithCulture(member.PropertyName)); #line default #line hidden #line 65 "C:\dev\net\runtime.rebase\sdk\src\ServiceClientGenerator\Generators\AWSQueryRequestMarshaller.tt" this.Write(")\r\n"); #line default #line hidden #line 66 "C:\dev\net\runtime.rebase\sdk\src\ServiceClientGenerator\Generators\AWSQueryRequestMarshaller.tt" this.Write(this.ToStringHelper.ToStringWithCulture(new string(' ', level * 4))); #line default #line hidden #line 66 "C:\dev\net\runtime.rebase\sdk\src\ServiceClientGenerator\Generators\AWSQueryRequestMarshaller.tt" this.Write(" {\r\n"); #line default #line hidden #line 67 "C:\dev\net\runtime.rebase\sdk\src\ServiceClientGenerator\Generators\AWSQueryRequestMarshaller.tt" if (member.Shape.ListShape.IsStructure) { ProcessMembers(level + 2, listItemContext, variableNameFragment + "listValue", member.Shape.ListShape.Members); } else { #line default #line hidden #line 75 "C:\dev\net\runtime.rebase\sdk\src\ServiceClientGenerator\Generators\AWSQueryRequestMarshaller.tt" this.Write(this.ToStringHelper.ToStringWithCulture(new string(' ', level * 4))); #line default #line hidden #line 75 "C:\dev\net\runtime.rebase\sdk\src\ServiceClientGenerator\Generators\AWSQueryRequestMarshaller.tt" this.Write(" request.Parameters.Add("); #line default #line hidden #line 75 "C:\dev\net\runtime.rebase\sdk\src\ServiceClientGenerator\Generators\AWSQueryRequestMarshaller.tt" this.Write(this.ToStringHelper.ToStringWithCulture(listItemContext)); #line default #line hidden #line 75 "C:\dev\net\runtime.rebase\sdk\src\ServiceClientGenerator\Generators\AWSQueryRequestMarshaller.tt" this.Write(", StringUtils.From"); #line default #line hidden #line 75 "C:\dev\net\runtime.rebase\sdk\src\ServiceClientGenerator\Generators\AWSQueryRequestMarshaller.tt" this.Write(this.ToStringHelper.ToStringWithCulture(member.Shape.ListShape.GetPrimitiveType())); #line default #line hidden #line 75 "C:\dev\net\runtime.rebase\sdk\src\ServiceClientGenerator\Generators\AWSQueryRequestMarshaller.tt" this.Write("("); #line default #line hidden #line 75 "C:\dev\net\runtime.rebase\sdk\src\ServiceClientGenerator\Generators\AWSQueryRequestMarshaller.tt" this.Write(this.ToStringHelper.ToStringWithCulture(variableNameFragment)); #line default #line hidden #line 75 "C:\dev\net\runtime.rebase\sdk\src\ServiceClientGenerator\Generators\AWSQueryRequestMarshaller.tt" this.Write("listValue));\r\n"); #line default #line hidden #line 76 "C:\dev\net\runtime.rebase\sdk\src\ServiceClientGenerator\Generators\AWSQueryRequestMarshaller.tt" } #line default #line hidden #line 79 "C:\dev\net\runtime.rebase\sdk\src\ServiceClientGenerator\Generators\AWSQueryRequestMarshaller.tt" this.Write(this.ToStringHelper.ToStringWithCulture(new string(' ', level * 4))); #line default #line hidden #line 79 "C:\dev\net\runtime.rebase\sdk\src\ServiceClientGenerator\Generators\AWSQueryRequestMarshaller.tt" this.Write(" "); #line default #line hidden #line 79 "C:\dev\net\runtime.rebase\sdk\src\ServiceClientGenerator\Generators\AWSQueryRequestMarshaller.tt" this.Write(this.ToStringHelper.ToStringWithCulture(variableNameFragment)); #line default #line hidden #line 79 "C:\dev\net\runtime.rebase\sdk\src\ServiceClientGenerator\Generators\AWSQueryRequestMarshaller.tt" this.Write("listValueIndex++;\r\n"); #line default #line hidden #line 80 "C:\dev\net\runtime.rebase\sdk\src\ServiceClientGenerator\Generators\AWSQueryRequestMarshaller.tt" this.Write(this.ToStringHelper.ToStringWithCulture(new string(' ', level * 4))); #line default #line hidden #line 80 "C:\dev\net\runtime.rebase\sdk\src\ServiceClientGenerator\Generators\AWSQueryRequestMarshaller.tt" this.Write(" }\r\n"); #line default #line hidden #line 81 "C:\dev\net\runtime.rebase\sdk\src\ServiceClientGenerator\Generators\AWSQueryRequestMarshaller.tt" } else if (member.IsMap) { string context = ComposeContext(parameterContext, marshallName); string mapItemContext = ComposeContext(context, member.Shape.IsFlattened ? "" : "entry", "mapIndex"); string mapKeyContext = ComposeContext(mapItemContext, member.Shape.KeyMarshallName); string mapValueContext = ComposeContext(mapItemContext, member.Shape.ValueMarshallName); #line default #line hidden #line 90 "C:\dev\net\runtime.rebase\sdk\src\ServiceClientGenerator\Generators\AWSQueryRequestMarshaller.tt" this.Write(this.ToStringHelper.ToStringWithCulture(new string(' ', level * 4))); #line default #line hidden #line 90 "C:\dev\net\runtime.rebase\sdk\src\ServiceClientGenerator\Generators\AWSQueryRequestMarshaller.tt" this.Write(" int mapIndex = 1;\r\n"); #line default #line hidden #line 91 "C:\dev\net\runtime.rebase\sdk\src\ServiceClientGenerator\Generators\AWSQueryRequestMarshaller.tt" this.Write(this.ToStringHelper.ToStringWithCulture(new string(' ', level * 4))); #line default #line hidden #line 91 "C:\dev\net\runtime.rebase\sdk\src\ServiceClientGenerator\Generators\AWSQueryRequestMarshaller.tt" this.Write(" foreach(var key in "); #line default #line hidden #line 91 "C:\dev\net\runtime.rebase\sdk\src\ServiceClientGenerator\Generators\AWSQueryRequestMarshaller.tt" this.Write(this.ToStringHelper.ToStringWithCulture(variableName)); #line default #line hidden #line 91 "C:\dev\net\runtime.rebase\sdk\src\ServiceClientGenerator\Generators\AWSQueryRequestMarshaller.tt" this.Write("."); #line default #line hidden #line 91 "C:\dev\net\runtime.rebase\sdk\src\ServiceClientGenerator\Generators\AWSQueryRequestMarshaller.tt" this.Write(this.ToStringHelper.ToStringWithCulture(member.PropertyName)); #line default #line hidden #line 91 "C:\dev\net\runtime.rebase\sdk\src\ServiceClientGenerator\Generators\AWSQueryRequestMarshaller.tt" this.Write(".Keys)\r\n"); #line default #line hidden #line 92 "C:\dev\net\runtime.rebase\sdk\src\ServiceClientGenerator\Generators\AWSQueryRequestMarshaller.tt" this.Write(this.ToStringHelper.ToStringWithCulture(new string(' ', level * 4))); #line default #line hidden #line 92 "C:\dev\net\runtime.rebase\sdk\src\ServiceClientGenerator\Generators\AWSQueryRequestMarshaller.tt" this.Write(" {\r\n"); #line default #line hidden #line 93 "C:\dev\net\runtime.rebase\sdk\src\ServiceClientGenerator\Generators\AWSQueryRequestMarshaller.tt" this.Write(this.ToStringHelper.ToStringWithCulture(new string(' ', level * 4))); #line default #line hidden #line 93 "C:\dev\net\runtime.rebase\sdk\src\ServiceClientGenerator\Generators\AWSQueryRequestMarshaller.tt" this.Write(" "); #line default #line hidden #line 93 "C:\dev\net\runtime.rebase\sdk\src\ServiceClientGenerator\Generators\AWSQueryRequestMarshaller.tt" this.Write(this.ToStringHelper.ToStringWithCulture(member.Shape.ValueShape.IsStructure ? member.Shape.ValueShape.Name : member.Shape.ValueShape.GetPrimitiveType())); #line default #line hidden #line 93 "C:\dev\net\runtime.rebase\sdk\src\ServiceClientGenerator\Generators\AWSQueryRequestMarshaller.tt" this.Write(" value;\r\n"); #line default #line hidden #line 94 "C:\dev\net\runtime.rebase\sdk\src\ServiceClientGenerator\Generators\AWSQueryRequestMarshaller.tt" this.Write(this.ToStringHelper.ToStringWithCulture(new string(' ', level * 4))); #line default #line hidden #line 94 "C:\dev\net\runtime.rebase\sdk\src\ServiceClientGenerator\Generators\AWSQueryRequestMarshaller.tt" this.Write(" bool hasValue = "); #line default #line hidden #line 94 "C:\dev\net\runtime.rebase\sdk\src\ServiceClientGenerator\Generators\AWSQueryRequestMarshaller.tt" this.Write(this.ToStringHelper.ToStringWithCulture(variableName)); #line default #line hidden #line 94 "C:\dev\net\runtime.rebase\sdk\src\ServiceClientGenerator\Generators\AWSQueryRequestMarshaller.tt" this.Write("."); #line default #line hidden #line 94 "C:\dev\net\runtime.rebase\sdk\src\ServiceClientGenerator\Generators\AWSQueryRequestMarshaller.tt" this.Write(this.ToStringHelper.ToStringWithCulture(member.PropertyName)); #line default #line hidden #line 94 "C:\dev\net\runtime.rebase\sdk\src\ServiceClientGenerator\Generators\AWSQueryRequestMarshaller.tt" this.Write(".TryGetValue(key, out value);\r\n"); #line default #line hidden #line 95 "C:\dev\net\runtime.rebase\sdk\src\ServiceClientGenerator\Generators\AWSQueryRequestMarshaller.tt" this.Write(this.ToStringHelper.ToStringWithCulture(new string(' ', level * 4))); #line default #line hidden #line 95 "C:\dev\net\runtime.rebase\sdk\src\ServiceClientGenerator\Generators\AWSQueryRequestMarshaller.tt" this.Write(" request.Parameters.Add("); #line default #line hidden #line 95 "C:\dev\net\runtime.rebase\sdk\src\ServiceClientGenerator\Generators\AWSQueryRequestMarshaller.tt" this.Write(this.ToStringHelper.ToStringWithCulture(mapKeyContext)); #line default #line hidden #line 95 "C:\dev\net\runtime.rebase\sdk\src\ServiceClientGenerator\Generators\AWSQueryRequestMarshaller.tt" this.Write(", StringUtils.From"); #line default #line hidden #line 95 "C:\dev\net\runtime.rebase\sdk\src\ServiceClientGenerator\Generators\AWSQueryRequestMarshaller.tt" this.Write(this.ToStringHelper.ToStringWithCulture(member.Shape.KeyShape.GetPrimitiveType())); #line default #line hidden #line 95 "C:\dev\net\runtime.rebase\sdk\src\ServiceClientGenerator\Generators\AWSQueryRequestMarshaller.tt" this.Write("(key));\r\n"); #line default #line hidden #line 96 "C:\dev\net\runtime.rebase\sdk\src\ServiceClientGenerator\Generators\AWSQueryRequestMarshaller.tt" this.Write(this.ToStringHelper.ToStringWithCulture(new string(' ', level * 4))); #line default #line hidden #line 96 "C:\dev\net\runtime.rebase\sdk\src\ServiceClientGenerator\Generators\AWSQueryRequestMarshaller.tt" this.Write(" if (hasValue)\r\n"); #line default #line hidden #line 97 "C:\dev\net\runtime.rebase\sdk\src\ServiceClientGenerator\Generators\AWSQueryRequestMarshaller.tt" this.Write(this.ToStringHelper.ToStringWithCulture(new string(' ', level * 4))); #line default #line hidden #line 97 "C:\dev\net\runtime.rebase\sdk\src\ServiceClientGenerator\Generators\AWSQueryRequestMarshaller.tt" this.Write(" {\r\n"); #line default #line hidden #line 98 "C:\dev\net\runtime.rebase\sdk\src\ServiceClientGenerator\Generators\AWSQueryRequestMarshaller.tt" if (member.Shape.ValueShape.IsStructure) { ProcessMembers(level + 3, mapValueContext, "value", member.Shape.ValueShape.Members); } else { #line default #line hidden #line 106 "C:\dev\net\runtime.rebase\sdk\src\ServiceClientGenerator\Generators\AWSQueryRequestMarshaller.tt" this.Write(this.ToStringHelper.ToStringWithCulture(new string(' ', level * 4))); #line default #line hidden #line 106 "C:\dev\net\runtime.rebase\sdk\src\ServiceClientGenerator\Generators\AWSQueryRequestMarshaller.tt" this.Write(" request.Parameters.Add("); #line default #line hidden #line 106 "C:\dev\net\runtime.rebase\sdk\src\ServiceClientGenerator\Generators\AWSQueryRequestMarshaller.tt" this.Write(this.ToStringHelper.ToStringWithCulture(mapValueContext)); #line default #line hidden #line 106 "C:\dev\net\runtime.rebase\sdk\src\ServiceClientGenerator\Generators\AWSQueryRequestMarshaller.tt" this.Write(", StringUtils.From"); #line default #line hidden #line 106 "C:\dev\net\runtime.rebase\sdk\src\ServiceClientGenerator\Generators\AWSQueryRequestMarshaller.tt" this.Write(this.ToStringHelper.ToStringWithCulture(member.Shape.ValueShape.GetPrimitiveType())); #line default #line hidden #line 106 "C:\dev\net\runtime.rebase\sdk\src\ServiceClientGenerator\Generators\AWSQueryRequestMarshaller.tt" this.Write("(value));\r\n"); #line default #line hidden #line 107 "C:\dev\net\runtime.rebase\sdk\src\ServiceClientGenerator\Generators\AWSQueryRequestMarshaller.tt" } #line default #line hidden #line 110 "C:\dev\net\runtime.rebase\sdk\src\ServiceClientGenerator\Generators\AWSQueryRequestMarshaller.tt" this.Write(this.ToStringHelper.ToStringWithCulture(new string(' ', level * 4))); #line default #line hidden #line 110 "C:\dev\net\runtime.rebase\sdk\src\ServiceClientGenerator\Generators\AWSQueryRequestMarshaller.tt" this.Write(" }\r\n"); #line default #line hidden #line 111 "C:\dev\net\runtime.rebase\sdk\src\ServiceClientGenerator\Generators\AWSQueryRequestMarshaller.tt" this.Write(this.ToStringHelper.ToStringWithCulture(new string(' ', level * 4))); #line default #line hidden #line 111 "C:\dev\net\runtime.rebase\sdk\src\ServiceClientGenerator\Generators\AWSQueryRequestMarshaller.tt" this.Write(" mapIndex++;\r\n"); #line default #line hidden #line 112 "C:\dev\net\runtime.rebase\sdk\src\ServiceClientGenerator\Generators\AWSQueryRequestMarshaller.tt" this.Write(this.ToStringHelper.ToStringWithCulture(new string(' ', level * 4))); #line default #line hidden #line 112 "C:\dev\net\runtime.rebase\sdk\src\ServiceClientGenerator\Generators\AWSQueryRequestMarshaller.tt" this.Write(" }\r\n"); #line default #line hidden #line 113 "C:\dev\net\runtime.rebase\sdk\src\ServiceClientGenerator\Generators\AWSQueryRequestMarshaller.tt" } else if (member.IsStructure) { string context = ComposeContext(parameterContext, marshallName); ProcessMembers(level + 1, context, variableName + "." + member.PropertyName, member.Shape.Members); } else { string context = ComposeContext(parameterContext, marshallName); #line default #line hidden #line 124 "C:\dev\net\runtime.rebase\sdk\src\ServiceClientGenerator\Generators\AWSQueryRequestMarshaller.tt" this.Write(this.ToStringHelper.ToStringWithCulture(new string(' ', level * 4))); #line default #line hidden #line 124 "C:\dev\net\runtime.rebase\sdk\src\ServiceClientGenerator\Generators\AWSQueryRequestMarshaller.tt" this.Write(" request.Parameters.Add("); #line default #line hidden #line 124 "C:\dev\net\runtime.rebase\sdk\src\ServiceClientGenerator\Generators\AWSQueryRequestMarshaller.tt" this.Write(this.ToStringHelper.ToStringWithCulture(context)); #line default #line hidden #line 124 "C:\dev\net\runtime.rebase\sdk\src\ServiceClientGenerator\Generators\AWSQueryRequestMarshaller.tt" this.Write(", StringUtils.From"); #line default #line hidden #line 124 "C:\dev\net\runtime.rebase\sdk\src\ServiceClientGenerator\Generators\AWSQueryRequestMarshaller.tt" this.Write(this.ToStringHelper.ToStringWithCulture(member.GetPrimitiveType())); #line default #line hidden #line 124 "C:\dev\net\runtime.rebase\sdk\src\ServiceClientGenerator\Generators\AWSQueryRequestMarshaller.tt" this.Write("("); #line default #line hidden #line 124 "C:\dev\net\runtime.rebase\sdk\src\ServiceClientGenerator\Generators\AWSQueryRequestMarshaller.tt" this.Write(this.ToStringHelper.ToStringWithCulture(variableName)); #line default #line hidden #line 124 "C:\dev\net\runtime.rebase\sdk\src\ServiceClientGenerator\Generators\AWSQueryRequestMarshaller.tt" this.Write("."); #line default #line hidden #line 124 "C:\dev\net\runtime.rebase\sdk\src\ServiceClientGenerator\Generators\AWSQueryRequestMarshaller.tt" this.Write(this.ToStringHelper.ToStringWithCulture(member.PropertyName)); #line default #line hidden #line 124 "C:\dev\net\runtime.rebase\sdk\src\ServiceClientGenerator\Generators\AWSQueryRequestMarshaller.tt" this.Write("));\r\n"); #line default #line hidden #line 125 "C:\dev\net\runtime.rebase\sdk\src\ServiceClientGenerator\Generators\AWSQueryRequestMarshaller.tt" } #line default #line hidden #line 128 "C:\dev\net\runtime.rebase\sdk\src\ServiceClientGenerator\Generators\AWSQueryRequestMarshaller.tt" this.Write(this.ToStringHelper.ToStringWithCulture(new string(' ', level * 4))); #line default #line hidden #line 128 "C:\dev\net\runtime.rebase\sdk\src\ServiceClientGenerator\Generators\AWSQueryRequestMarshaller.tt" this.Write(" }\r\n"); #line default #line hidden #line 129 "C:\dev\net\runtime.rebase\sdk\src\ServiceClientGenerator\Generators\AWSQueryRequestMarshaller.tt" } }