repo_name
stringlengths
1
52
repo_creator
stringclasses
6 values
programming_language
stringclasses
4 values
code
stringlengths
0
9.68M
num_lines
int64
1
234k
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the appmesh-2019-01-25.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.AppMesh.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AppMesh.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for GrpcRouteMetadataMatchMethod Object /// </summary> public class GrpcRouteMetadataMatchMethodUnmarshaller : IUnmarshaller<GrpcRouteMetadataMatchMethod, XmlUnmarshallerContext>, IUnmarshaller<GrpcRouteMetadataMatchMethod, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> GrpcRouteMetadataMatchMethod IUnmarshaller<GrpcRouteMetadataMatchMethod, XmlUnmarshallerContext>.Unmarshall(XmlUnmarshallerContext context) { throw new NotImplementedException(); } /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public GrpcRouteMetadataMatchMethod Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; GrpcRouteMetadataMatchMethod unmarshalledObject = new GrpcRouteMetadataMatchMethod(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("exact", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Exact = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("prefix", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Prefix = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("range", targetDepth)) { var unmarshaller = MatchRangeUnmarshaller.Instance; unmarshalledObject.Range = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("regex", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Regex = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("suffix", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Suffix = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static GrpcRouteMetadataMatchMethodUnmarshaller _instance = new GrpcRouteMetadataMatchMethodUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static GrpcRouteMetadataMatchMethodUnmarshaller Instance { get { return _instance; } } } }
116
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the appmesh-2019-01-25.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.AppMesh.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AppMesh.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for GrpcRouteMetadata Object /// </summary> public class GrpcRouteMetadataUnmarshaller : IUnmarshaller<GrpcRouteMetadata, XmlUnmarshallerContext>, IUnmarshaller<GrpcRouteMetadata, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> GrpcRouteMetadata IUnmarshaller<GrpcRouteMetadata, XmlUnmarshallerContext>.Unmarshall(XmlUnmarshallerContext context) { throw new NotImplementedException(); } /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public GrpcRouteMetadata Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; GrpcRouteMetadata unmarshalledObject = new GrpcRouteMetadata(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("invert", targetDepth)) { var unmarshaller = BoolUnmarshaller.Instance; unmarshalledObject.Invert = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("match", targetDepth)) { var unmarshaller = GrpcRouteMetadataMatchMethodUnmarshaller.Instance; unmarshalledObject.Match = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("name", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Name = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static GrpcRouteMetadataUnmarshaller _instance = new GrpcRouteMetadataUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static GrpcRouteMetadataUnmarshaller Instance { get { return _instance; } } } }
104
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the appmesh-2019-01-25.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.AppMesh.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AppMesh.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for GrpcRoute Object /// </summary> public class GrpcRouteUnmarshaller : IUnmarshaller<GrpcRoute, XmlUnmarshallerContext>, IUnmarshaller<GrpcRoute, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> GrpcRoute IUnmarshaller<GrpcRoute, XmlUnmarshallerContext>.Unmarshall(XmlUnmarshallerContext context) { throw new NotImplementedException(); } /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public GrpcRoute Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; GrpcRoute unmarshalledObject = new GrpcRoute(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("action", targetDepth)) { var unmarshaller = GrpcRouteActionUnmarshaller.Instance; unmarshalledObject.Action = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("match", targetDepth)) { var unmarshaller = GrpcRouteMatchUnmarshaller.Instance; unmarshalledObject.Match = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("retryPolicy", targetDepth)) { var unmarshaller = GrpcRetryPolicyUnmarshaller.Instance; unmarshalledObject.RetryPolicy = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("timeout", targetDepth)) { var unmarshaller = GrpcTimeoutUnmarshaller.Instance; unmarshalledObject.Timeout = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static GrpcRouteUnmarshaller _instance = new GrpcRouteUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static GrpcRouteUnmarshaller Instance { get { return _instance; } } } }
110
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the appmesh-2019-01-25.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Text; using System.Xml.Serialization; using Amazon.AppMesh.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AppMesh.Model.Internal.MarshallTransformations { /// <summary> /// GrpcTimeout Marshaller /// </summary> public class GrpcTimeoutMarshaller : IRequestMarshaller<GrpcTimeout, JsonMarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="requestObject"></param> /// <param name="context"></param> /// <returns></returns> public void Marshall(GrpcTimeout requestObject, JsonMarshallerContext context) { if(requestObject.IsSetIdle()) { context.Writer.WritePropertyName("idle"); context.Writer.WriteObjectStart(); var marshaller = DurationMarshaller.Instance; marshaller.Marshall(requestObject.Idle, context); context.Writer.WriteObjectEnd(); } if(requestObject.IsSetPerRequest()) { context.Writer.WritePropertyName("perRequest"); context.Writer.WriteObjectStart(); var marshaller = DurationMarshaller.Instance; marshaller.Marshall(requestObject.PerRequest, context); context.Writer.WriteObjectEnd(); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static GrpcTimeoutMarshaller Instance = new GrpcTimeoutMarshaller(); } }
78
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the appmesh-2019-01-25.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.AppMesh.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AppMesh.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for GrpcTimeout Object /// </summary> public class GrpcTimeoutUnmarshaller : IUnmarshaller<GrpcTimeout, XmlUnmarshallerContext>, IUnmarshaller<GrpcTimeout, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> GrpcTimeout IUnmarshaller<GrpcTimeout, XmlUnmarshallerContext>.Unmarshall(XmlUnmarshallerContext context) { throw new NotImplementedException(); } /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public GrpcTimeout Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; GrpcTimeout unmarshalledObject = new GrpcTimeout(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("idle", targetDepth)) { var unmarshaller = DurationUnmarshaller.Instance; unmarshalledObject.Idle = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("perRequest", targetDepth)) { var unmarshaller = DurationUnmarshaller.Instance; unmarshalledObject.PerRequest = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static GrpcTimeoutUnmarshaller _instance = new GrpcTimeoutUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static GrpcTimeoutUnmarshaller Instance { get { return _instance; } } } }
98
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the appmesh-2019-01-25.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Text; using System.Xml.Serialization; using Amazon.AppMesh.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AppMesh.Model.Internal.MarshallTransformations { /// <summary> /// HeaderMatchMethod Marshaller /// </summary> public class HeaderMatchMethodMarshaller : IRequestMarshaller<HeaderMatchMethod, JsonMarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="requestObject"></param> /// <param name="context"></param> /// <returns></returns> public void Marshall(HeaderMatchMethod requestObject, JsonMarshallerContext context) { if(requestObject.IsSetExact()) { context.Writer.WritePropertyName("exact"); context.Writer.Write(requestObject.Exact); } if(requestObject.IsSetPrefix()) { context.Writer.WritePropertyName("prefix"); context.Writer.Write(requestObject.Prefix); } if(requestObject.IsSetRange()) { context.Writer.WritePropertyName("range"); context.Writer.WriteObjectStart(); var marshaller = MatchRangeMarshaller.Instance; marshaller.Marshall(requestObject.Range, context); context.Writer.WriteObjectEnd(); } if(requestObject.IsSetRegex()) { context.Writer.WritePropertyName("regex"); context.Writer.Write(requestObject.Regex); } if(requestObject.IsSetSuffix()) { context.Writer.WritePropertyName("suffix"); context.Writer.Write(requestObject.Suffix); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static HeaderMatchMethodMarshaller Instance = new HeaderMatchMethodMarshaller(); } }
91
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the appmesh-2019-01-25.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.AppMesh.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AppMesh.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for HeaderMatchMethod Object /// </summary> public class HeaderMatchMethodUnmarshaller : IUnmarshaller<HeaderMatchMethod, XmlUnmarshallerContext>, IUnmarshaller<HeaderMatchMethod, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> HeaderMatchMethod IUnmarshaller<HeaderMatchMethod, XmlUnmarshallerContext>.Unmarshall(XmlUnmarshallerContext context) { throw new NotImplementedException(); } /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public HeaderMatchMethod Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; HeaderMatchMethod unmarshalledObject = new HeaderMatchMethod(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("exact", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Exact = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("prefix", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Prefix = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("range", targetDepth)) { var unmarshaller = MatchRangeUnmarshaller.Instance; unmarshalledObject.Range = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("regex", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Regex = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("suffix", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Suffix = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static HeaderMatchMethodUnmarshaller _instance = new HeaderMatchMethodUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static HeaderMatchMethodUnmarshaller Instance { get { return _instance; } } } }
116
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the appmesh-2019-01-25.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Text; using System.Xml.Serialization; using Amazon.AppMesh.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AppMesh.Model.Internal.MarshallTransformations { /// <summary> /// HealthCheckPolicy Marshaller /// </summary> public class HealthCheckPolicyMarshaller : IRequestMarshaller<HealthCheckPolicy, JsonMarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="requestObject"></param> /// <param name="context"></param> /// <returns></returns> public void Marshall(HealthCheckPolicy requestObject, JsonMarshallerContext context) { if(requestObject.IsSetHealthyThreshold()) { context.Writer.WritePropertyName("healthyThreshold"); context.Writer.Write(requestObject.HealthyThreshold); } if(requestObject.IsSetIntervalMillis()) { context.Writer.WritePropertyName("intervalMillis"); context.Writer.Write(requestObject.IntervalMillis); } if(requestObject.IsSetPath()) { context.Writer.WritePropertyName("path"); context.Writer.Write(requestObject.Path); } if(requestObject.IsSetPort()) { context.Writer.WritePropertyName("port"); context.Writer.Write(requestObject.Port); } if(requestObject.IsSetProtocol()) { context.Writer.WritePropertyName("protocol"); context.Writer.Write(requestObject.Protocol); } if(requestObject.IsSetTimeoutMillis()) { context.Writer.WritePropertyName("timeoutMillis"); context.Writer.Write(requestObject.TimeoutMillis); } if(requestObject.IsSetUnhealthyThreshold()) { context.Writer.WritePropertyName("unhealthyThreshold"); context.Writer.Write(requestObject.UnhealthyThreshold); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static HealthCheckPolicyMarshaller Instance = new HealthCheckPolicyMarshaller(); } }
98
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the appmesh-2019-01-25.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.AppMesh.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AppMesh.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for HealthCheckPolicy Object /// </summary> public class HealthCheckPolicyUnmarshaller : IUnmarshaller<HealthCheckPolicy, XmlUnmarshallerContext>, IUnmarshaller<HealthCheckPolicy, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> HealthCheckPolicy IUnmarshaller<HealthCheckPolicy, XmlUnmarshallerContext>.Unmarshall(XmlUnmarshallerContext context) { throw new NotImplementedException(); } /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public HealthCheckPolicy Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; HealthCheckPolicy unmarshalledObject = new HealthCheckPolicy(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("healthyThreshold", targetDepth)) { var unmarshaller = IntUnmarshaller.Instance; unmarshalledObject.HealthyThreshold = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("intervalMillis", targetDepth)) { var unmarshaller = LongUnmarshaller.Instance; unmarshalledObject.IntervalMillis = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("path", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Path = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("port", targetDepth)) { var unmarshaller = IntUnmarshaller.Instance; unmarshalledObject.Port = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("protocol", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Protocol = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("timeoutMillis", targetDepth)) { var unmarshaller = LongUnmarshaller.Instance; unmarshalledObject.TimeoutMillis = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("unhealthyThreshold", targetDepth)) { var unmarshaller = IntUnmarshaller.Instance; unmarshalledObject.UnhealthyThreshold = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static HealthCheckPolicyUnmarshaller _instance = new HealthCheckPolicyUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static HealthCheckPolicyUnmarshaller Instance { get { return _instance; } } } }
128
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the appmesh-2019-01-25.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Text; using System.Xml.Serialization; using Amazon.AppMesh.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AppMesh.Model.Internal.MarshallTransformations { /// <summary> /// HttpGatewayRouteAction Marshaller /// </summary> public class HttpGatewayRouteActionMarshaller : IRequestMarshaller<HttpGatewayRouteAction, JsonMarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="requestObject"></param> /// <param name="context"></param> /// <returns></returns> public void Marshall(HttpGatewayRouteAction requestObject, JsonMarshallerContext context) { if(requestObject.IsSetRewrite()) { context.Writer.WritePropertyName("rewrite"); context.Writer.WriteObjectStart(); var marshaller = HttpGatewayRouteRewriteMarshaller.Instance; marshaller.Marshall(requestObject.Rewrite, context); context.Writer.WriteObjectEnd(); } if(requestObject.IsSetTarget()) { context.Writer.WritePropertyName("target"); context.Writer.WriteObjectStart(); var marshaller = GatewayRouteTargetMarshaller.Instance; marshaller.Marshall(requestObject.Target, context); context.Writer.WriteObjectEnd(); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static HttpGatewayRouteActionMarshaller Instance = new HttpGatewayRouteActionMarshaller(); } }
78
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the appmesh-2019-01-25.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.AppMesh.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AppMesh.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for HttpGatewayRouteAction Object /// </summary> public class HttpGatewayRouteActionUnmarshaller : IUnmarshaller<HttpGatewayRouteAction, XmlUnmarshallerContext>, IUnmarshaller<HttpGatewayRouteAction, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> HttpGatewayRouteAction IUnmarshaller<HttpGatewayRouteAction, XmlUnmarshallerContext>.Unmarshall(XmlUnmarshallerContext context) { throw new NotImplementedException(); } /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public HttpGatewayRouteAction Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; HttpGatewayRouteAction unmarshalledObject = new HttpGatewayRouteAction(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("rewrite", targetDepth)) { var unmarshaller = HttpGatewayRouteRewriteUnmarshaller.Instance; unmarshalledObject.Rewrite = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("target", targetDepth)) { var unmarshaller = GatewayRouteTargetUnmarshaller.Instance; unmarshalledObject.Target = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static HttpGatewayRouteActionUnmarshaller _instance = new HttpGatewayRouteActionUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static HttpGatewayRouteActionUnmarshaller Instance { get { return _instance; } } } }
98
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the appmesh-2019-01-25.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Text; using System.Xml.Serialization; using Amazon.AppMesh.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AppMesh.Model.Internal.MarshallTransformations { /// <summary> /// HttpGatewayRouteHeader Marshaller /// </summary> public class HttpGatewayRouteHeaderMarshaller : IRequestMarshaller<HttpGatewayRouteHeader, JsonMarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="requestObject"></param> /// <param name="context"></param> /// <returns></returns> public void Marshall(HttpGatewayRouteHeader requestObject, JsonMarshallerContext context) { if(requestObject.IsSetInvert()) { context.Writer.WritePropertyName("invert"); context.Writer.Write(requestObject.Invert); } if(requestObject.IsSetMatch()) { context.Writer.WritePropertyName("match"); context.Writer.WriteObjectStart(); var marshaller = HeaderMatchMethodMarshaller.Instance; marshaller.Marshall(requestObject.Match, context); context.Writer.WriteObjectEnd(); } if(requestObject.IsSetName()) { context.Writer.WritePropertyName("name"); context.Writer.Write(requestObject.Name); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static HttpGatewayRouteHeaderMarshaller Instance = new HttpGatewayRouteHeaderMarshaller(); } }
79
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the appmesh-2019-01-25.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.AppMesh.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AppMesh.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for HttpGatewayRouteHeader Object /// </summary> public class HttpGatewayRouteHeaderUnmarshaller : IUnmarshaller<HttpGatewayRouteHeader, XmlUnmarshallerContext>, IUnmarshaller<HttpGatewayRouteHeader, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> HttpGatewayRouteHeader IUnmarshaller<HttpGatewayRouteHeader, XmlUnmarshallerContext>.Unmarshall(XmlUnmarshallerContext context) { throw new NotImplementedException(); } /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public HttpGatewayRouteHeader Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; HttpGatewayRouteHeader unmarshalledObject = new HttpGatewayRouteHeader(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("invert", targetDepth)) { var unmarshaller = BoolUnmarshaller.Instance; unmarshalledObject.Invert = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("match", targetDepth)) { var unmarshaller = HeaderMatchMethodUnmarshaller.Instance; unmarshalledObject.Match = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("name", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Name = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static HttpGatewayRouteHeaderUnmarshaller _instance = new HttpGatewayRouteHeaderUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static HttpGatewayRouteHeaderUnmarshaller Instance { get { return _instance; } } } }
104
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the appmesh-2019-01-25.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Text; using System.Xml.Serialization; using Amazon.AppMesh.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AppMesh.Model.Internal.MarshallTransformations { /// <summary> /// HttpGatewayRoute Marshaller /// </summary> public class HttpGatewayRouteMarshaller : IRequestMarshaller<HttpGatewayRoute, JsonMarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="requestObject"></param> /// <param name="context"></param> /// <returns></returns> public void Marshall(HttpGatewayRoute requestObject, JsonMarshallerContext context) { if(requestObject.IsSetAction()) { context.Writer.WritePropertyName("action"); context.Writer.WriteObjectStart(); var marshaller = HttpGatewayRouteActionMarshaller.Instance; marshaller.Marshall(requestObject.Action, context); context.Writer.WriteObjectEnd(); } if(requestObject.IsSetMatch()) { context.Writer.WritePropertyName("match"); context.Writer.WriteObjectStart(); var marshaller = HttpGatewayRouteMatchMarshaller.Instance; marshaller.Marshall(requestObject.Match, context); context.Writer.WriteObjectEnd(); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static HttpGatewayRouteMarshaller Instance = new HttpGatewayRouteMarshaller(); } }
78
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the appmesh-2019-01-25.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Text; using System.Xml.Serialization; using Amazon.AppMesh.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AppMesh.Model.Internal.MarshallTransformations { /// <summary> /// HttpGatewayRouteMatch Marshaller /// </summary> public class HttpGatewayRouteMatchMarshaller : IRequestMarshaller<HttpGatewayRouteMatch, JsonMarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="requestObject"></param> /// <param name="context"></param> /// <returns></returns> public void Marshall(HttpGatewayRouteMatch requestObject, JsonMarshallerContext context) { if(requestObject.IsSetHeaders()) { context.Writer.WritePropertyName("headers"); context.Writer.WriteArrayStart(); foreach(var requestObjectHeadersListValue in requestObject.Headers) { context.Writer.WriteObjectStart(); var marshaller = HttpGatewayRouteHeaderMarshaller.Instance; marshaller.Marshall(requestObjectHeadersListValue, context); context.Writer.WriteObjectEnd(); } context.Writer.WriteArrayEnd(); } if(requestObject.IsSetHostname()) { context.Writer.WritePropertyName("hostname"); context.Writer.WriteObjectStart(); var marshaller = GatewayRouteHostnameMatchMarshaller.Instance; marshaller.Marshall(requestObject.Hostname, context); context.Writer.WriteObjectEnd(); } if(requestObject.IsSetMethod()) { context.Writer.WritePropertyName("method"); context.Writer.Write(requestObject.Method); } if(requestObject.IsSetPath()) { context.Writer.WritePropertyName("path"); context.Writer.WriteObjectStart(); var marshaller = HttpPathMatchMarshaller.Instance; marshaller.Marshall(requestObject.Path, context); context.Writer.WriteObjectEnd(); } if(requestObject.IsSetPort()) { context.Writer.WritePropertyName("port"); context.Writer.Write(requestObject.Port); } if(requestObject.IsSetPrefix()) { context.Writer.WritePropertyName("prefix"); context.Writer.Write(requestObject.Prefix); } if(requestObject.IsSetQueryParameters()) { context.Writer.WritePropertyName("queryParameters"); context.Writer.WriteArrayStart(); foreach(var requestObjectQueryParametersListValue in requestObject.QueryParameters) { context.Writer.WriteObjectStart(); var marshaller = HttpQueryParameterMarshaller.Instance; marshaller.Marshall(requestObjectQueryParametersListValue, context); context.Writer.WriteObjectEnd(); } context.Writer.WriteArrayEnd(); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static HttpGatewayRouteMatchMarshaller Instance = new HttpGatewayRouteMatchMarshaller(); } }
128
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the appmesh-2019-01-25.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.AppMesh.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AppMesh.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for HttpGatewayRouteMatch Object /// </summary> public class HttpGatewayRouteMatchUnmarshaller : IUnmarshaller<HttpGatewayRouteMatch, XmlUnmarshallerContext>, IUnmarshaller<HttpGatewayRouteMatch, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> HttpGatewayRouteMatch IUnmarshaller<HttpGatewayRouteMatch, XmlUnmarshallerContext>.Unmarshall(XmlUnmarshallerContext context) { throw new NotImplementedException(); } /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public HttpGatewayRouteMatch Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; HttpGatewayRouteMatch unmarshalledObject = new HttpGatewayRouteMatch(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("headers", targetDepth)) { var unmarshaller = new ListUnmarshaller<HttpGatewayRouteHeader, HttpGatewayRouteHeaderUnmarshaller>(HttpGatewayRouteHeaderUnmarshaller.Instance); unmarshalledObject.Headers = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("hostname", targetDepth)) { var unmarshaller = GatewayRouteHostnameMatchUnmarshaller.Instance; unmarshalledObject.Hostname = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("method", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Method = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("path", targetDepth)) { var unmarshaller = HttpPathMatchUnmarshaller.Instance; unmarshalledObject.Path = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("port", targetDepth)) { var unmarshaller = IntUnmarshaller.Instance; unmarshalledObject.Port = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("prefix", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Prefix = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("queryParameters", targetDepth)) { var unmarshaller = new ListUnmarshaller<HttpQueryParameter, HttpQueryParameterUnmarshaller>(HttpQueryParameterUnmarshaller.Instance); unmarshalledObject.QueryParameters = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static HttpGatewayRouteMatchUnmarshaller _instance = new HttpGatewayRouteMatchUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static HttpGatewayRouteMatchUnmarshaller Instance { get { return _instance; } } } }
128
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the appmesh-2019-01-25.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Text; using System.Xml.Serialization; using Amazon.AppMesh.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AppMesh.Model.Internal.MarshallTransformations { /// <summary> /// HttpGatewayRoutePathRewrite Marshaller /// </summary> public class HttpGatewayRoutePathRewriteMarshaller : IRequestMarshaller<HttpGatewayRoutePathRewrite, JsonMarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="requestObject"></param> /// <param name="context"></param> /// <returns></returns> public void Marshall(HttpGatewayRoutePathRewrite requestObject, JsonMarshallerContext context) { if(requestObject.IsSetExact()) { context.Writer.WritePropertyName("exact"); context.Writer.Write(requestObject.Exact); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static HttpGatewayRoutePathRewriteMarshaller Instance = new HttpGatewayRoutePathRewriteMarshaller(); } }
62
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the appmesh-2019-01-25.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.AppMesh.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AppMesh.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for HttpGatewayRoutePathRewrite Object /// </summary> public class HttpGatewayRoutePathRewriteUnmarshaller : IUnmarshaller<HttpGatewayRoutePathRewrite, XmlUnmarshallerContext>, IUnmarshaller<HttpGatewayRoutePathRewrite, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> HttpGatewayRoutePathRewrite IUnmarshaller<HttpGatewayRoutePathRewrite, XmlUnmarshallerContext>.Unmarshall(XmlUnmarshallerContext context) { throw new NotImplementedException(); } /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public HttpGatewayRoutePathRewrite Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; HttpGatewayRoutePathRewrite unmarshalledObject = new HttpGatewayRoutePathRewrite(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("exact", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Exact = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static HttpGatewayRoutePathRewriteUnmarshaller _instance = new HttpGatewayRoutePathRewriteUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static HttpGatewayRoutePathRewriteUnmarshaller Instance { get { return _instance; } } } }
92
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the appmesh-2019-01-25.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Text; using System.Xml.Serialization; using Amazon.AppMesh.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AppMesh.Model.Internal.MarshallTransformations { /// <summary> /// HttpGatewayRoutePrefixRewrite Marshaller /// </summary> public class HttpGatewayRoutePrefixRewriteMarshaller : IRequestMarshaller<HttpGatewayRoutePrefixRewrite, JsonMarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="requestObject"></param> /// <param name="context"></param> /// <returns></returns> public void Marshall(HttpGatewayRoutePrefixRewrite requestObject, JsonMarshallerContext context) { if(requestObject.IsSetDefaultPrefix()) { context.Writer.WritePropertyName("defaultPrefix"); context.Writer.Write(requestObject.DefaultPrefix); } if(requestObject.IsSetValue()) { context.Writer.WritePropertyName("value"); context.Writer.Write(requestObject.Value); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static HttpGatewayRoutePrefixRewriteMarshaller Instance = new HttpGatewayRoutePrefixRewriteMarshaller(); } }
68
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the appmesh-2019-01-25.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.AppMesh.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AppMesh.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for HttpGatewayRoutePrefixRewrite Object /// </summary> public class HttpGatewayRoutePrefixRewriteUnmarshaller : IUnmarshaller<HttpGatewayRoutePrefixRewrite, XmlUnmarshallerContext>, IUnmarshaller<HttpGatewayRoutePrefixRewrite, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> HttpGatewayRoutePrefixRewrite IUnmarshaller<HttpGatewayRoutePrefixRewrite, XmlUnmarshallerContext>.Unmarshall(XmlUnmarshallerContext context) { throw new NotImplementedException(); } /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public HttpGatewayRoutePrefixRewrite Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; HttpGatewayRoutePrefixRewrite unmarshalledObject = new HttpGatewayRoutePrefixRewrite(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("defaultPrefix", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.DefaultPrefix = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("value", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Value = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static HttpGatewayRoutePrefixRewriteUnmarshaller _instance = new HttpGatewayRoutePrefixRewriteUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static HttpGatewayRoutePrefixRewriteUnmarshaller Instance { get { return _instance; } } } }
98
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the appmesh-2019-01-25.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Text; using System.Xml.Serialization; using Amazon.AppMesh.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AppMesh.Model.Internal.MarshallTransformations { /// <summary> /// HttpGatewayRouteRewrite Marshaller /// </summary> public class HttpGatewayRouteRewriteMarshaller : IRequestMarshaller<HttpGatewayRouteRewrite, JsonMarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="requestObject"></param> /// <param name="context"></param> /// <returns></returns> public void Marshall(HttpGatewayRouteRewrite requestObject, JsonMarshallerContext context) { if(requestObject.IsSetHostname()) { context.Writer.WritePropertyName("hostname"); context.Writer.WriteObjectStart(); var marshaller = GatewayRouteHostnameRewriteMarshaller.Instance; marshaller.Marshall(requestObject.Hostname, context); context.Writer.WriteObjectEnd(); } if(requestObject.IsSetPath()) { context.Writer.WritePropertyName("path"); context.Writer.WriteObjectStart(); var marshaller = HttpGatewayRoutePathRewriteMarshaller.Instance; marshaller.Marshall(requestObject.Path, context); context.Writer.WriteObjectEnd(); } if(requestObject.IsSetPrefix()) { context.Writer.WritePropertyName("prefix"); context.Writer.WriteObjectStart(); var marshaller = HttpGatewayRoutePrefixRewriteMarshaller.Instance; marshaller.Marshall(requestObject.Prefix, context); context.Writer.WriteObjectEnd(); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static HttpGatewayRouteRewriteMarshaller Instance = new HttpGatewayRouteRewriteMarshaller(); } }
89
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the appmesh-2019-01-25.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.AppMesh.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AppMesh.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for HttpGatewayRouteRewrite Object /// </summary> public class HttpGatewayRouteRewriteUnmarshaller : IUnmarshaller<HttpGatewayRouteRewrite, XmlUnmarshallerContext>, IUnmarshaller<HttpGatewayRouteRewrite, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> HttpGatewayRouteRewrite IUnmarshaller<HttpGatewayRouteRewrite, XmlUnmarshallerContext>.Unmarshall(XmlUnmarshallerContext context) { throw new NotImplementedException(); } /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public HttpGatewayRouteRewrite Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; HttpGatewayRouteRewrite unmarshalledObject = new HttpGatewayRouteRewrite(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("hostname", targetDepth)) { var unmarshaller = GatewayRouteHostnameRewriteUnmarshaller.Instance; unmarshalledObject.Hostname = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("path", targetDepth)) { var unmarshaller = HttpGatewayRoutePathRewriteUnmarshaller.Instance; unmarshalledObject.Path = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("prefix", targetDepth)) { var unmarshaller = HttpGatewayRoutePrefixRewriteUnmarshaller.Instance; unmarshalledObject.Prefix = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static HttpGatewayRouteRewriteUnmarshaller _instance = new HttpGatewayRouteRewriteUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static HttpGatewayRouteRewriteUnmarshaller Instance { get { return _instance; } } } }
104
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the appmesh-2019-01-25.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.AppMesh.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AppMesh.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for HttpGatewayRoute Object /// </summary> public class HttpGatewayRouteUnmarshaller : IUnmarshaller<HttpGatewayRoute, XmlUnmarshallerContext>, IUnmarshaller<HttpGatewayRoute, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> HttpGatewayRoute IUnmarshaller<HttpGatewayRoute, XmlUnmarshallerContext>.Unmarshall(XmlUnmarshallerContext context) { throw new NotImplementedException(); } /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public HttpGatewayRoute Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; HttpGatewayRoute unmarshalledObject = new HttpGatewayRoute(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("action", targetDepth)) { var unmarshaller = HttpGatewayRouteActionUnmarshaller.Instance; unmarshalledObject.Action = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("match", targetDepth)) { var unmarshaller = HttpGatewayRouteMatchUnmarshaller.Instance; unmarshalledObject.Match = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static HttpGatewayRouteUnmarshaller _instance = new HttpGatewayRouteUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static HttpGatewayRouteUnmarshaller Instance { get { return _instance; } } } }
98
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the appmesh-2019-01-25.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Text; using System.Xml.Serialization; using Amazon.AppMesh.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AppMesh.Model.Internal.MarshallTransformations { /// <summary> /// HttpPathMatch Marshaller /// </summary> public class HttpPathMatchMarshaller : IRequestMarshaller<HttpPathMatch, JsonMarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="requestObject"></param> /// <param name="context"></param> /// <returns></returns> public void Marshall(HttpPathMatch requestObject, JsonMarshallerContext context) { if(requestObject.IsSetExact()) { context.Writer.WritePropertyName("exact"); context.Writer.Write(requestObject.Exact); } if(requestObject.IsSetRegex()) { context.Writer.WritePropertyName("regex"); context.Writer.Write(requestObject.Regex); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static HttpPathMatchMarshaller Instance = new HttpPathMatchMarshaller(); } }
68
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the appmesh-2019-01-25.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.AppMesh.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AppMesh.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for HttpPathMatch Object /// </summary> public class HttpPathMatchUnmarshaller : IUnmarshaller<HttpPathMatch, XmlUnmarshallerContext>, IUnmarshaller<HttpPathMatch, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> HttpPathMatch IUnmarshaller<HttpPathMatch, XmlUnmarshallerContext>.Unmarshall(XmlUnmarshallerContext context) { throw new NotImplementedException(); } /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public HttpPathMatch Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; HttpPathMatch unmarshalledObject = new HttpPathMatch(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("exact", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Exact = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("regex", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Regex = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static HttpPathMatchUnmarshaller _instance = new HttpPathMatchUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static HttpPathMatchUnmarshaller Instance { get { return _instance; } } } }
98
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the appmesh-2019-01-25.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Text; using System.Xml.Serialization; using Amazon.AppMesh.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AppMesh.Model.Internal.MarshallTransformations { /// <summary> /// HttpQueryParameter Marshaller /// </summary> public class HttpQueryParameterMarshaller : IRequestMarshaller<HttpQueryParameter, JsonMarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="requestObject"></param> /// <param name="context"></param> /// <returns></returns> public void Marshall(HttpQueryParameter requestObject, JsonMarshallerContext context) { if(requestObject.IsSetMatch()) { context.Writer.WritePropertyName("match"); context.Writer.WriteObjectStart(); var marshaller = QueryParameterMatchMarshaller.Instance; marshaller.Marshall(requestObject.Match, context); context.Writer.WriteObjectEnd(); } if(requestObject.IsSetName()) { context.Writer.WritePropertyName("name"); context.Writer.Write(requestObject.Name); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static HttpQueryParameterMarshaller Instance = new HttpQueryParameterMarshaller(); } }
73
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the appmesh-2019-01-25.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.AppMesh.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AppMesh.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for HttpQueryParameter Object /// </summary> public class HttpQueryParameterUnmarshaller : IUnmarshaller<HttpQueryParameter, XmlUnmarshallerContext>, IUnmarshaller<HttpQueryParameter, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> HttpQueryParameter IUnmarshaller<HttpQueryParameter, XmlUnmarshallerContext>.Unmarshall(XmlUnmarshallerContext context) { throw new NotImplementedException(); } /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public HttpQueryParameter Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; HttpQueryParameter unmarshalledObject = new HttpQueryParameter(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("match", targetDepth)) { var unmarshaller = QueryParameterMatchUnmarshaller.Instance; unmarshalledObject.Match = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("name", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Name = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static HttpQueryParameterUnmarshaller _instance = new HttpQueryParameterUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static HttpQueryParameterUnmarshaller Instance { get { return _instance; } } } }
98
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the appmesh-2019-01-25.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Text; using System.Xml.Serialization; using Amazon.AppMesh.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AppMesh.Model.Internal.MarshallTransformations { /// <summary> /// HttpRetryPolicy Marshaller /// </summary> public class HttpRetryPolicyMarshaller : IRequestMarshaller<HttpRetryPolicy, JsonMarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="requestObject"></param> /// <param name="context"></param> /// <returns></returns> public void Marshall(HttpRetryPolicy requestObject, JsonMarshallerContext context) { if(requestObject.IsSetHttpRetryEvents()) { context.Writer.WritePropertyName("httpRetryEvents"); context.Writer.WriteArrayStart(); foreach(var requestObjectHttpRetryEventsListValue in requestObject.HttpRetryEvents) { context.Writer.Write(requestObjectHttpRetryEventsListValue); } context.Writer.WriteArrayEnd(); } if(requestObject.IsSetMaxRetries()) { context.Writer.WritePropertyName("maxRetries"); context.Writer.Write(requestObject.MaxRetries); } if(requestObject.IsSetPerRetryTimeout()) { context.Writer.WritePropertyName("perRetryTimeout"); context.Writer.WriteObjectStart(); var marshaller = DurationMarshaller.Instance; marshaller.Marshall(requestObject.PerRetryTimeout, context); context.Writer.WriteObjectEnd(); } if(requestObject.IsSetTcpRetryEvents()) { context.Writer.WritePropertyName("tcpRetryEvents"); context.Writer.WriteArrayStart(); foreach(var requestObjectTcpRetryEventsListValue in requestObject.TcpRetryEvents) { context.Writer.Write(requestObjectTcpRetryEventsListValue); } context.Writer.WriteArrayEnd(); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static HttpRetryPolicyMarshaller Instance = new HttpRetryPolicyMarshaller(); } }
95
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the appmesh-2019-01-25.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.AppMesh.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AppMesh.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for HttpRetryPolicy Object /// </summary> public class HttpRetryPolicyUnmarshaller : IUnmarshaller<HttpRetryPolicy, XmlUnmarshallerContext>, IUnmarshaller<HttpRetryPolicy, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> HttpRetryPolicy IUnmarshaller<HttpRetryPolicy, XmlUnmarshallerContext>.Unmarshall(XmlUnmarshallerContext context) { throw new NotImplementedException(); } /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public HttpRetryPolicy Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; HttpRetryPolicy unmarshalledObject = new HttpRetryPolicy(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("httpRetryEvents", targetDepth)) { var unmarshaller = new ListUnmarshaller<string, StringUnmarshaller>(StringUnmarshaller.Instance); unmarshalledObject.HttpRetryEvents = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("maxRetries", targetDepth)) { var unmarshaller = LongUnmarshaller.Instance; unmarshalledObject.MaxRetries = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("perRetryTimeout", targetDepth)) { var unmarshaller = DurationUnmarshaller.Instance; unmarshalledObject.PerRetryTimeout = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("tcpRetryEvents", targetDepth)) { var unmarshaller = new ListUnmarshaller<string, StringUnmarshaller>(StringUnmarshaller.Instance); unmarshalledObject.TcpRetryEvents = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static HttpRetryPolicyUnmarshaller _instance = new HttpRetryPolicyUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static HttpRetryPolicyUnmarshaller Instance { get { return _instance; } } } }
110
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the appmesh-2019-01-25.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Text; using System.Xml.Serialization; using Amazon.AppMesh.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AppMesh.Model.Internal.MarshallTransformations { /// <summary> /// HttpRouteAction Marshaller /// </summary> public class HttpRouteActionMarshaller : IRequestMarshaller<HttpRouteAction, JsonMarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="requestObject"></param> /// <param name="context"></param> /// <returns></returns> public void Marshall(HttpRouteAction requestObject, JsonMarshallerContext context) { if(requestObject.IsSetWeightedTargets()) { context.Writer.WritePropertyName("weightedTargets"); context.Writer.WriteArrayStart(); foreach(var requestObjectWeightedTargetsListValue in requestObject.WeightedTargets) { context.Writer.WriteObjectStart(); var marshaller = WeightedTargetMarshaller.Instance; marshaller.Marshall(requestObjectWeightedTargetsListValue, context); context.Writer.WriteObjectEnd(); } context.Writer.WriteArrayEnd(); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static HttpRouteActionMarshaller Instance = new HttpRouteActionMarshaller(); } }
72
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the appmesh-2019-01-25.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.AppMesh.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AppMesh.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for HttpRouteAction Object /// </summary> public class HttpRouteActionUnmarshaller : IUnmarshaller<HttpRouteAction, XmlUnmarshallerContext>, IUnmarshaller<HttpRouteAction, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> HttpRouteAction IUnmarshaller<HttpRouteAction, XmlUnmarshallerContext>.Unmarshall(XmlUnmarshallerContext context) { throw new NotImplementedException(); } /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public HttpRouteAction Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; HttpRouteAction unmarshalledObject = new HttpRouteAction(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("weightedTargets", targetDepth)) { var unmarshaller = new ListUnmarshaller<WeightedTarget, WeightedTargetUnmarshaller>(WeightedTargetUnmarshaller.Instance); unmarshalledObject.WeightedTargets = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static HttpRouteActionUnmarshaller _instance = new HttpRouteActionUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static HttpRouteActionUnmarshaller Instance { get { return _instance; } } } }
92
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the appmesh-2019-01-25.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Text; using System.Xml.Serialization; using Amazon.AppMesh.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AppMesh.Model.Internal.MarshallTransformations { /// <summary> /// HttpRouteHeader Marshaller /// </summary> public class HttpRouteHeaderMarshaller : IRequestMarshaller<HttpRouteHeader, JsonMarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="requestObject"></param> /// <param name="context"></param> /// <returns></returns> public void Marshall(HttpRouteHeader requestObject, JsonMarshallerContext context) { if(requestObject.IsSetInvert()) { context.Writer.WritePropertyName("invert"); context.Writer.Write(requestObject.Invert); } if(requestObject.IsSetMatch()) { context.Writer.WritePropertyName("match"); context.Writer.WriteObjectStart(); var marshaller = HeaderMatchMethodMarshaller.Instance; marshaller.Marshall(requestObject.Match, context); context.Writer.WriteObjectEnd(); } if(requestObject.IsSetName()) { context.Writer.WritePropertyName("name"); context.Writer.Write(requestObject.Name); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static HttpRouteHeaderMarshaller Instance = new HttpRouteHeaderMarshaller(); } }
79
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the appmesh-2019-01-25.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.AppMesh.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AppMesh.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for HttpRouteHeader Object /// </summary> public class HttpRouteHeaderUnmarshaller : IUnmarshaller<HttpRouteHeader, XmlUnmarshallerContext>, IUnmarshaller<HttpRouteHeader, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> HttpRouteHeader IUnmarshaller<HttpRouteHeader, XmlUnmarshallerContext>.Unmarshall(XmlUnmarshallerContext context) { throw new NotImplementedException(); } /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public HttpRouteHeader Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; HttpRouteHeader unmarshalledObject = new HttpRouteHeader(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("invert", targetDepth)) { var unmarshaller = BoolUnmarshaller.Instance; unmarshalledObject.Invert = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("match", targetDepth)) { var unmarshaller = HeaderMatchMethodUnmarshaller.Instance; unmarshalledObject.Match = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("name", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Name = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static HttpRouteHeaderUnmarshaller _instance = new HttpRouteHeaderUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static HttpRouteHeaderUnmarshaller Instance { get { return _instance; } } } }
104
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the appmesh-2019-01-25.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Text; using System.Xml.Serialization; using Amazon.AppMesh.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AppMesh.Model.Internal.MarshallTransformations { /// <summary> /// HttpRoute Marshaller /// </summary> public class HttpRouteMarshaller : IRequestMarshaller<HttpRoute, JsonMarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="requestObject"></param> /// <param name="context"></param> /// <returns></returns> public void Marshall(HttpRoute requestObject, JsonMarshallerContext context) { if(requestObject.IsSetAction()) { context.Writer.WritePropertyName("action"); context.Writer.WriteObjectStart(); var marshaller = HttpRouteActionMarshaller.Instance; marshaller.Marshall(requestObject.Action, context); context.Writer.WriteObjectEnd(); } if(requestObject.IsSetMatch()) { context.Writer.WritePropertyName("match"); context.Writer.WriteObjectStart(); var marshaller = HttpRouteMatchMarshaller.Instance; marshaller.Marshall(requestObject.Match, context); context.Writer.WriteObjectEnd(); } if(requestObject.IsSetRetryPolicy()) { context.Writer.WritePropertyName("retryPolicy"); context.Writer.WriteObjectStart(); var marshaller = HttpRetryPolicyMarshaller.Instance; marshaller.Marshall(requestObject.RetryPolicy, context); context.Writer.WriteObjectEnd(); } if(requestObject.IsSetTimeout()) { context.Writer.WritePropertyName("timeout"); context.Writer.WriteObjectStart(); var marshaller = HttpTimeoutMarshaller.Instance; marshaller.Marshall(requestObject.Timeout, context); context.Writer.WriteObjectEnd(); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static HttpRouteMarshaller Instance = new HttpRouteMarshaller(); } }
100
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the appmesh-2019-01-25.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Text; using System.Xml.Serialization; using Amazon.AppMesh.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AppMesh.Model.Internal.MarshallTransformations { /// <summary> /// HttpRouteMatch Marshaller /// </summary> public class HttpRouteMatchMarshaller : IRequestMarshaller<HttpRouteMatch, JsonMarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="requestObject"></param> /// <param name="context"></param> /// <returns></returns> public void Marshall(HttpRouteMatch requestObject, JsonMarshallerContext context) { if(requestObject.IsSetHeaders()) { context.Writer.WritePropertyName("headers"); context.Writer.WriteArrayStart(); foreach(var requestObjectHeadersListValue in requestObject.Headers) { context.Writer.WriteObjectStart(); var marshaller = HttpRouteHeaderMarshaller.Instance; marshaller.Marshall(requestObjectHeadersListValue, context); context.Writer.WriteObjectEnd(); } context.Writer.WriteArrayEnd(); } if(requestObject.IsSetMethod()) { context.Writer.WritePropertyName("method"); context.Writer.Write(requestObject.Method); } if(requestObject.IsSetPath()) { context.Writer.WritePropertyName("path"); context.Writer.WriteObjectStart(); var marshaller = HttpPathMatchMarshaller.Instance; marshaller.Marshall(requestObject.Path, context); context.Writer.WriteObjectEnd(); } if(requestObject.IsSetPort()) { context.Writer.WritePropertyName("port"); context.Writer.Write(requestObject.Port); } if(requestObject.IsSetPrefix()) { context.Writer.WritePropertyName("prefix"); context.Writer.Write(requestObject.Prefix); } if(requestObject.IsSetQueryParameters()) { context.Writer.WritePropertyName("queryParameters"); context.Writer.WriteArrayStart(); foreach(var requestObjectQueryParametersListValue in requestObject.QueryParameters) { context.Writer.WriteObjectStart(); var marshaller = HttpQueryParameterMarshaller.Instance; marshaller.Marshall(requestObjectQueryParametersListValue, context); context.Writer.WriteObjectEnd(); } context.Writer.WriteArrayEnd(); } if(requestObject.IsSetScheme()) { context.Writer.WritePropertyName("scheme"); context.Writer.Write(requestObject.Scheme); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static HttpRouteMatchMarshaller Instance = new HttpRouteMatchMarshaller(); } }
123
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the appmesh-2019-01-25.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.AppMesh.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AppMesh.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for HttpRouteMatch Object /// </summary> public class HttpRouteMatchUnmarshaller : IUnmarshaller<HttpRouteMatch, XmlUnmarshallerContext>, IUnmarshaller<HttpRouteMatch, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> HttpRouteMatch IUnmarshaller<HttpRouteMatch, XmlUnmarshallerContext>.Unmarshall(XmlUnmarshallerContext context) { throw new NotImplementedException(); } /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public HttpRouteMatch Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; HttpRouteMatch unmarshalledObject = new HttpRouteMatch(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("headers", targetDepth)) { var unmarshaller = new ListUnmarshaller<HttpRouteHeader, HttpRouteHeaderUnmarshaller>(HttpRouteHeaderUnmarshaller.Instance); unmarshalledObject.Headers = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("method", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Method = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("path", targetDepth)) { var unmarshaller = HttpPathMatchUnmarshaller.Instance; unmarshalledObject.Path = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("port", targetDepth)) { var unmarshaller = IntUnmarshaller.Instance; unmarshalledObject.Port = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("prefix", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Prefix = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("queryParameters", targetDepth)) { var unmarshaller = new ListUnmarshaller<HttpQueryParameter, HttpQueryParameterUnmarshaller>(HttpQueryParameterUnmarshaller.Instance); unmarshalledObject.QueryParameters = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("scheme", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Scheme = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static HttpRouteMatchUnmarshaller _instance = new HttpRouteMatchUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static HttpRouteMatchUnmarshaller Instance { get { return _instance; } } } }
128
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the appmesh-2019-01-25.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.AppMesh.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AppMesh.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for HttpRoute Object /// </summary> public class HttpRouteUnmarshaller : IUnmarshaller<HttpRoute, XmlUnmarshallerContext>, IUnmarshaller<HttpRoute, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> HttpRoute IUnmarshaller<HttpRoute, XmlUnmarshallerContext>.Unmarshall(XmlUnmarshallerContext context) { throw new NotImplementedException(); } /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public HttpRoute Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; HttpRoute unmarshalledObject = new HttpRoute(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("action", targetDepth)) { var unmarshaller = HttpRouteActionUnmarshaller.Instance; unmarshalledObject.Action = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("match", targetDepth)) { var unmarshaller = HttpRouteMatchUnmarshaller.Instance; unmarshalledObject.Match = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("retryPolicy", targetDepth)) { var unmarshaller = HttpRetryPolicyUnmarshaller.Instance; unmarshalledObject.RetryPolicy = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("timeout", targetDepth)) { var unmarshaller = HttpTimeoutUnmarshaller.Instance; unmarshalledObject.Timeout = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static HttpRouteUnmarshaller _instance = new HttpRouteUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static HttpRouteUnmarshaller Instance { get { return _instance; } } } }
110
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the appmesh-2019-01-25.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Text; using System.Xml.Serialization; using Amazon.AppMesh.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AppMesh.Model.Internal.MarshallTransformations { /// <summary> /// HttpTimeout Marshaller /// </summary> public class HttpTimeoutMarshaller : IRequestMarshaller<HttpTimeout, JsonMarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="requestObject"></param> /// <param name="context"></param> /// <returns></returns> public void Marshall(HttpTimeout requestObject, JsonMarshallerContext context) { if(requestObject.IsSetIdle()) { context.Writer.WritePropertyName("idle"); context.Writer.WriteObjectStart(); var marshaller = DurationMarshaller.Instance; marshaller.Marshall(requestObject.Idle, context); context.Writer.WriteObjectEnd(); } if(requestObject.IsSetPerRequest()) { context.Writer.WritePropertyName("perRequest"); context.Writer.WriteObjectStart(); var marshaller = DurationMarshaller.Instance; marshaller.Marshall(requestObject.PerRequest, context); context.Writer.WriteObjectEnd(); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static HttpTimeoutMarshaller Instance = new HttpTimeoutMarshaller(); } }
78
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the appmesh-2019-01-25.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.AppMesh.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AppMesh.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for HttpTimeout Object /// </summary> public class HttpTimeoutUnmarshaller : IUnmarshaller<HttpTimeout, XmlUnmarshallerContext>, IUnmarshaller<HttpTimeout, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> HttpTimeout IUnmarshaller<HttpTimeout, XmlUnmarshallerContext>.Unmarshall(XmlUnmarshallerContext context) { throw new NotImplementedException(); } /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public HttpTimeout Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; HttpTimeout unmarshalledObject = new HttpTimeout(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("idle", targetDepth)) { var unmarshaller = DurationUnmarshaller.Instance; unmarshalledObject.Idle = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("perRequest", targetDepth)) { var unmarshaller = DurationUnmarshaller.Instance; unmarshalledObject.PerRequest = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static HttpTimeoutUnmarshaller _instance = new HttpTimeoutUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static HttpTimeoutUnmarshaller Instance { get { return _instance; } } } }
98
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the appmesh-2019-01-25.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.AppMesh.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AppMesh.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for InternalServerErrorException Object /// </summary> public class InternalServerErrorExceptionUnmarshaller : IErrorResponseUnmarshaller<InternalServerErrorException, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public InternalServerErrorException Unmarshall(JsonUnmarshallerContext context) { return this.Unmarshall(context, new Amazon.Runtime.Internal.ErrorResponse()); } /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <param name="errorResponse"></param> /// <returns></returns> public InternalServerErrorException Unmarshall(JsonUnmarshallerContext context, Amazon.Runtime.Internal.ErrorResponse errorResponse) { context.Read(); InternalServerErrorException unmarshalledObject = new InternalServerErrorException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { } return unmarshalledObject; } private static InternalServerErrorExceptionUnmarshaller _instance = new InternalServerErrorExceptionUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static InternalServerErrorExceptionUnmarshaller Instance { get { return _instance; } } } }
85
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the appmesh-2019-01-25.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Text; using System.Xml.Serialization; using Amazon.AppMesh.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AppMesh.Model.Internal.MarshallTransformations { /// <summary> /// JsonFormatRef Marshaller /// </summary> public class JsonFormatRefMarshaller : IRequestMarshaller<JsonFormatRef, JsonMarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="requestObject"></param> /// <param name="context"></param> /// <returns></returns> public void Marshall(JsonFormatRef requestObject, JsonMarshallerContext context) { if(requestObject.IsSetKey()) { context.Writer.WritePropertyName("key"); context.Writer.Write(requestObject.Key); } if(requestObject.IsSetValue()) { context.Writer.WritePropertyName("value"); context.Writer.Write(requestObject.Value); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static JsonFormatRefMarshaller Instance = new JsonFormatRefMarshaller(); } }
68
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the appmesh-2019-01-25.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.AppMesh.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AppMesh.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for JsonFormatRef Object /// </summary> public class JsonFormatRefUnmarshaller : IUnmarshaller<JsonFormatRef, XmlUnmarshallerContext>, IUnmarshaller<JsonFormatRef, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> JsonFormatRef IUnmarshaller<JsonFormatRef, XmlUnmarshallerContext>.Unmarshall(XmlUnmarshallerContext context) { throw new NotImplementedException(); } /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public JsonFormatRef Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; JsonFormatRef unmarshalledObject = new JsonFormatRef(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("key", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Key = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("value", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Value = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static JsonFormatRefUnmarshaller _instance = new JsonFormatRefUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static JsonFormatRefUnmarshaller Instance { get { return _instance; } } } }
98
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the appmesh-2019-01-25.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.AppMesh.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AppMesh.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for LimitExceededException Object /// </summary> public class LimitExceededExceptionUnmarshaller : IErrorResponseUnmarshaller<LimitExceededException, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public LimitExceededException Unmarshall(JsonUnmarshallerContext context) { return this.Unmarshall(context, new Amazon.Runtime.Internal.ErrorResponse()); } /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <param name="errorResponse"></param> /// <returns></returns> public LimitExceededException Unmarshall(JsonUnmarshallerContext context, Amazon.Runtime.Internal.ErrorResponse errorResponse) { context.Read(); LimitExceededException unmarshalledObject = new LimitExceededException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { } return unmarshalledObject; } private static LimitExceededExceptionUnmarshaller _instance = new LimitExceededExceptionUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static LimitExceededExceptionUnmarshaller Instance { get { return _instance; } } } }
85
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the appmesh-2019-01-25.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Text; using System.Xml.Serialization; using Amazon.AppMesh.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AppMesh.Model.Internal.MarshallTransformations { /// <summary> /// Listener Marshaller /// </summary> public class ListenerMarshaller : IRequestMarshaller<Listener, JsonMarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="requestObject"></param> /// <param name="context"></param> /// <returns></returns> public void Marshall(Listener requestObject, JsonMarshallerContext context) { if(requestObject.IsSetConnectionPool()) { context.Writer.WritePropertyName("connectionPool"); context.Writer.WriteObjectStart(); var marshaller = VirtualNodeConnectionPoolMarshaller.Instance; marshaller.Marshall(requestObject.ConnectionPool, context); context.Writer.WriteObjectEnd(); } if(requestObject.IsSetHealthCheck()) { context.Writer.WritePropertyName("healthCheck"); context.Writer.WriteObjectStart(); var marshaller = HealthCheckPolicyMarshaller.Instance; marshaller.Marshall(requestObject.HealthCheck, context); context.Writer.WriteObjectEnd(); } if(requestObject.IsSetOutlierDetection()) { context.Writer.WritePropertyName("outlierDetection"); context.Writer.WriteObjectStart(); var marshaller = OutlierDetectionMarshaller.Instance; marshaller.Marshall(requestObject.OutlierDetection, context); context.Writer.WriteObjectEnd(); } if(requestObject.IsSetPortMapping()) { context.Writer.WritePropertyName("portMapping"); context.Writer.WriteObjectStart(); var marshaller = PortMappingMarshaller.Instance; marshaller.Marshall(requestObject.PortMapping, context); context.Writer.WriteObjectEnd(); } if(requestObject.IsSetTimeout()) { context.Writer.WritePropertyName("timeout"); context.Writer.WriteObjectStart(); var marshaller = ListenerTimeoutMarshaller.Instance; marshaller.Marshall(requestObject.Timeout, context); context.Writer.WriteObjectEnd(); } if(requestObject.IsSetTls()) { context.Writer.WritePropertyName("tls"); context.Writer.WriteObjectStart(); var marshaller = ListenerTlsMarshaller.Instance; marshaller.Marshall(requestObject.Tls, context); context.Writer.WriteObjectEnd(); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static ListenerMarshaller Instance = new ListenerMarshaller(); } }
122
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the appmesh-2019-01-25.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Text; using System.Xml.Serialization; using Amazon.AppMesh.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AppMesh.Model.Internal.MarshallTransformations { /// <summary> /// ListenerTimeout Marshaller /// </summary> public class ListenerTimeoutMarshaller : IRequestMarshaller<ListenerTimeout, JsonMarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="requestObject"></param> /// <param name="context"></param> /// <returns></returns> public void Marshall(ListenerTimeout requestObject, JsonMarshallerContext context) { if(requestObject.IsSetGrpc()) { context.Writer.WritePropertyName("grpc"); context.Writer.WriteObjectStart(); var marshaller = GrpcTimeoutMarshaller.Instance; marshaller.Marshall(requestObject.Grpc, context); context.Writer.WriteObjectEnd(); } if(requestObject.IsSetHttp()) { context.Writer.WritePropertyName("http"); context.Writer.WriteObjectStart(); var marshaller = HttpTimeoutMarshaller.Instance; marshaller.Marshall(requestObject.Http, context); context.Writer.WriteObjectEnd(); } if(requestObject.IsSetHttp2()) { context.Writer.WritePropertyName("http2"); context.Writer.WriteObjectStart(); var marshaller = HttpTimeoutMarshaller.Instance; marshaller.Marshall(requestObject.Http2, context); context.Writer.WriteObjectEnd(); } if(requestObject.IsSetTcp()) { context.Writer.WritePropertyName("tcp"); context.Writer.WriteObjectStart(); var marshaller = TcpTimeoutMarshaller.Instance; marshaller.Marshall(requestObject.Tcp, context); context.Writer.WriteObjectEnd(); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static ListenerTimeoutMarshaller Instance = new ListenerTimeoutMarshaller(); } }
100
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the appmesh-2019-01-25.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.AppMesh.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AppMesh.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for ListenerTimeout Object /// </summary> public class ListenerTimeoutUnmarshaller : IUnmarshaller<ListenerTimeout, XmlUnmarshallerContext>, IUnmarshaller<ListenerTimeout, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> ListenerTimeout IUnmarshaller<ListenerTimeout, XmlUnmarshallerContext>.Unmarshall(XmlUnmarshallerContext context) { throw new NotImplementedException(); } /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public ListenerTimeout Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; ListenerTimeout unmarshalledObject = new ListenerTimeout(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("grpc", targetDepth)) { var unmarshaller = GrpcTimeoutUnmarshaller.Instance; unmarshalledObject.Grpc = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("http", targetDepth)) { var unmarshaller = HttpTimeoutUnmarshaller.Instance; unmarshalledObject.Http = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("http2", targetDepth)) { var unmarshaller = HttpTimeoutUnmarshaller.Instance; unmarshalledObject.Http2 = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("tcp", targetDepth)) { var unmarshaller = TcpTimeoutUnmarshaller.Instance; unmarshalledObject.Tcp = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static ListenerTimeoutUnmarshaller _instance = new ListenerTimeoutUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static ListenerTimeoutUnmarshaller Instance { get { return _instance; } } } }
110
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the appmesh-2019-01-25.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Text; using System.Xml.Serialization; using Amazon.AppMesh.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AppMesh.Model.Internal.MarshallTransformations { /// <summary> /// ListenerTlsAcmCertificate Marshaller /// </summary> public class ListenerTlsAcmCertificateMarshaller : IRequestMarshaller<ListenerTlsAcmCertificate, JsonMarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="requestObject"></param> /// <param name="context"></param> /// <returns></returns> public void Marshall(ListenerTlsAcmCertificate requestObject, JsonMarshallerContext context) { if(requestObject.IsSetCertificateArn()) { context.Writer.WritePropertyName("certificateArn"); context.Writer.Write(requestObject.CertificateArn); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static ListenerTlsAcmCertificateMarshaller Instance = new ListenerTlsAcmCertificateMarshaller(); } }
62
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the appmesh-2019-01-25.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.AppMesh.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AppMesh.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for ListenerTlsAcmCertificate Object /// </summary> public class ListenerTlsAcmCertificateUnmarshaller : IUnmarshaller<ListenerTlsAcmCertificate, XmlUnmarshallerContext>, IUnmarshaller<ListenerTlsAcmCertificate, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> ListenerTlsAcmCertificate IUnmarshaller<ListenerTlsAcmCertificate, XmlUnmarshallerContext>.Unmarshall(XmlUnmarshallerContext context) { throw new NotImplementedException(); } /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public ListenerTlsAcmCertificate Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; ListenerTlsAcmCertificate unmarshalledObject = new ListenerTlsAcmCertificate(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("certificateArn", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.CertificateArn = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static ListenerTlsAcmCertificateUnmarshaller _instance = new ListenerTlsAcmCertificateUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static ListenerTlsAcmCertificateUnmarshaller Instance { get { return _instance; } } } }
92
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the appmesh-2019-01-25.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Text; using System.Xml.Serialization; using Amazon.AppMesh.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AppMesh.Model.Internal.MarshallTransformations { /// <summary> /// ListenerTlsCertificate Marshaller /// </summary> public class ListenerTlsCertificateMarshaller : IRequestMarshaller<ListenerTlsCertificate, JsonMarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="requestObject"></param> /// <param name="context"></param> /// <returns></returns> public void Marshall(ListenerTlsCertificate requestObject, JsonMarshallerContext context) { if(requestObject.IsSetAcm()) { context.Writer.WritePropertyName("acm"); context.Writer.WriteObjectStart(); var marshaller = ListenerTlsAcmCertificateMarshaller.Instance; marshaller.Marshall(requestObject.Acm, context); context.Writer.WriteObjectEnd(); } if(requestObject.IsSetFile()) { context.Writer.WritePropertyName("file"); context.Writer.WriteObjectStart(); var marshaller = ListenerTlsFileCertificateMarshaller.Instance; marshaller.Marshall(requestObject.File, context); context.Writer.WriteObjectEnd(); } if(requestObject.IsSetSds()) { context.Writer.WritePropertyName("sds"); context.Writer.WriteObjectStart(); var marshaller = ListenerTlsSdsCertificateMarshaller.Instance; marshaller.Marshall(requestObject.Sds, context); context.Writer.WriteObjectEnd(); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static ListenerTlsCertificateMarshaller Instance = new ListenerTlsCertificateMarshaller(); } }
89
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the appmesh-2019-01-25.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.AppMesh.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AppMesh.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for ListenerTlsCertificate Object /// </summary> public class ListenerTlsCertificateUnmarshaller : IUnmarshaller<ListenerTlsCertificate, XmlUnmarshallerContext>, IUnmarshaller<ListenerTlsCertificate, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> ListenerTlsCertificate IUnmarshaller<ListenerTlsCertificate, XmlUnmarshallerContext>.Unmarshall(XmlUnmarshallerContext context) { throw new NotImplementedException(); } /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public ListenerTlsCertificate Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; ListenerTlsCertificate unmarshalledObject = new ListenerTlsCertificate(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("acm", targetDepth)) { var unmarshaller = ListenerTlsAcmCertificateUnmarshaller.Instance; unmarshalledObject.Acm = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("file", targetDepth)) { var unmarshaller = ListenerTlsFileCertificateUnmarshaller.Instance; unmarshalledObject.File = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("sds", targetDepth)) { var unmarshaller = ListenerTlsSdsCertificateUnmarshaller.Instance; unmarshalledObject.Sds = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static ListenerTlsCertificateUnmarshaller _instance = new ListenerTlsCertificateUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static ListenerTlsCertificateUnmarshaller Instance { get { return _instance; } } } }
104
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the appmesh-2019-01-25.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Text; using System.Xml.Serialization; using Amazon.AppMesh.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AppMesh.Model.Internal.MarshallTransformations { /// <summary> /// ListenerTlsFileCertificate Marshaller /// </summary> public class ListenerTlsFileCertificateMarshaller : IRequestMarshaller<ListenerTlsFileCertificate, JsonMarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="requestObject"></param> /// <param name="context"></param> /// <returns></returns> public void Marshall(ListenerTlsFileCertificate requestObject, JsonMarshallerContext context) { if(requestObject.IsSetCertificateChain()) { context.Writer.WritePropertyName("certificateChain"); context.Writer.Write(requestObject.CertificateChain); } if(requestObject.IsSetPrivateKey()) { context.Writer.WritePropertyName("privateKey"); context.Writer.Write(requestObject.PrivateKey); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static ListenerTlsFileCertificateMarshaller Instance = new ListenerTlsFileCertificateMarshaller(); } }
68
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the appmesh-2019-01-25.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.AppMesh.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AppMesh.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for ListenerTlsFileCertificate Object /// </summary> public class ListenerTlsFileCertificateUnmarshaller : IUnmarshaller<ListenerTlsFileCertificate, XmlUnmarshallerContext>, IUnmarshaller<ListenerTlsFileCertificate, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> ListenerTlsFileCertificate IUnmarshaller<ListenerTlsFileCertificate, XmlUnmarshallerContext>.Unmarshall(XmlUnmarshallerContext context) { throw new NotImplementedException(); } /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public ListenerTlsFileCertificate Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; ListenerTlsFileCertificate unmarshalledObject = new ListenerTlsFileCertificate(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("certificateChain", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.CertificateChain = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("privateKey", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.PrivateKey = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static ListenerTlsFileCertificateUnmarshaller _instance = new ListenerTlsFileCertificateUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static ListenerTlsFileCertificateUnmarshaller Instance { get { return _instance; } } } }
98
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the appmesh-2019-01-25.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Text; using System.Xml.Serialization; using Amazon.AppMesh.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AppMesh.Model.Internal.MarshallTransformations { /// <summary> /// ListenerTls Marshaller /// </summary> public class ListenerTlsMarshaller : IRequestMarshaller<ListenerTls, JsonMarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="requestObject"></param> /// <param name="context"></param> /// <returns></returns> public void Marshall(ListenerTls requestObject, JsonMarshallerContext context) { if(requestObject.IsSetCertificate()) { context.Writer.WritePropertyName("certificate"); context.Writer.WriteObjectStart(); var marshaller = ListenerTlsCertificateMarshaller.Instance; marshaller.Marshall(requestObject.Certificate, context); context.Writer.WriteObjectEnd(); } if(requestObject.IsSetMode()) { context.Writer.WritePropertyName("mode"); context.Writer.Write(requestObject.Mode); } if(requestObject.IsSetValidation()) { context.Writer.WritePropertyName("validation"); context.Writer.WriteObjectStart(); var marshaller = ListenerTlsValidationContextMarshaller.Instance; marshaller.Marshall(requestObject.Validation, context); context.Writer.WriteObjectEnd(); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static ListenerTlsMarshaller Instance = new ListenerTlsMarshaller(); } }
84
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the appmesh-2019-01-25.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Text; using System.Xml.Serialization; using Amazon.AppMesh.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AppMesh.Model.Internal.MarshallTransformations { /// <summary> /// ListenerTlsSdsCertificate Marshaller /// </summary> public class ListenerTlsSdsCertificateMarshaller : IRequestMarshaller<ListenerTlsSdsCertificate, JsonMarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="requestObject"></param> /// <param name="context"></param> /// <returns></returns> public void Marshall(ListenerTlsSdsCertificate requestObject, JsonMarshallerContext context) { if(requestObject.IsSetSecretName()) { context.Writer.WritePropertyName("secretName"); context.Writer.Write(requestObject.SecretName); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static ListenerTlsSdsCertificateMarshaller Instance = new ListenerTlsSdsCertificateMarshaller(); } }
62
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the appmesh-2019-01-25.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.AppMesh.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AppMesh.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for ListenerTlsSdsCertificate Object /// </summary> public class ListenerTlsSdsCertificateUnmarshaller : IUnmarshaller<ListenerTlsSdsCertificate, XmlUnmarshallerContext>, IUnmarshaller<ListenerTlsSdsCertificate, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> ListenerTlsSdsCertificate IUnmarshaller<ListenerTlsSdsCertificate, XmlUnmarshallerContext>.Unmarshall(XmlUnmarshallerContext context) { throw new NotImplementedException(); } /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public ListenerTlsSdsCertificate Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; ListenerTlsSdsCertificate unmarshalledObject = new ListenerTlsSdsCertificate(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("secretName", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.SecretName = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static ListenerTlsSdsCertificateUnmarshaller _instance = new ListenerTlsSdsCertificateUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static ListenerTlsSdsCertificateUnmarshaller Instance { get { return _instance; } } } }
92
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the appmesh-2019-01-25.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.AppMesh.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AppMesh.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for ListenerTls Object /// </summary> public class ListenerTlsUnmarshaller : IUnmarshaller<ListenerTls, XmlUnmarshallerContext>, IUnmarshaller<ListenerTls, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> ListenerTls IUnmarshaller<ListenerTls, XmlUnmarshallerContext>.Unmarshall(XmlUnmarshallerContext context) { throw new NotImplementedException(); } /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public ListenerTls Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; ListenerTls unmarshalledObject = new ListenerTls(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("certificate", targetDepth)) { var unmarshaller = ListenerTlsCertificateUnmarshaller.Instance; unmarshalledObject.Certificate = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("mode", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Mode = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("validation", targetDepth)) { var unmarshaller = ListenerTlsValidationContextUnmarshaller.Instance; unmarshalledObject.Validation = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static ListenerTlsUnmarshaller _instance = new ListenerTlsUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static ListenerTlsUnmarshaller Instance { get { return _instance; } } } }
104
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the appmesh-2019-01-25.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Text; using System.Xml.Serialization; using Amazon.AppMesh.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AppMesh.Model.Internal.MarshallTransformations { /// <summary> /// ListenerTlsValidationContext Marshaller /// </summary> public class ListenerTlsValidationContextMarshaller : IRequestMarshaller<ListenerTlsValidationContext, JsonMarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="requestObject"></param> /// <param name="context"></param> /// <returns></returns> public void Marshall(ListenerTlsValidationContext requestObject, JsonMarshallerContext context) { if(requestObject.IsSetSubjectAlternativeNames()) { context.Writer.WritePropertyName("subjectAlternativeNames"); context.Writer.WriteObjectStart(); var marshaller = SubjectAlternativeNamesMarshaller.Instance; marshaller.Marshall(requestObject.SubjectAlternativeNames, context); context.Writer.WriteObjectEnd(); } if(requestObject.IsSetTrust()) { context.Writer.WritePropertyName("trust"); context.Writer.WriteObjectStart(); var marshaller = ListenerTlsValidationContextTrustMarshaller.Instance; marshaller.Marshall(requestObject.Trust, context); context.Writer.WriteObjectEnd(); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static ListenerTlsValidationContextMarshaller Instance = new ListenerTlsValidationContextMarshaller(); } }
78
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the appmesh-2019-01-25.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Text; using System.Xml.Serialization; using Amazon.AppMesh.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AppMesh.Model.Internal.MarshallTransformations { /// <summary> /// ListenerTlsValidationContextTrust Marshaller /// </summary> public class ListenerTlsValidationContextTrustMarshaller : IRequestMarshaller<ListenerTlsValidationContextTrust, JsonMarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="requestObject"></param> /// <param name="context"></param> /// <returns></returns> public void Marshall(ListenerTlsValidationContextTrust requestObject, JsonMarshallerContext context) { if(requestObject.IsSetFile()) { context.Writer.WritePropertyName("file"); context.Writer.WriteObjectStart(); var marshaller = TlsValidationContextFileTrustMarshaller.Instance; marshaller.Marshall(requestObject.File, context); context.Writer.WriteObjectEnd(); } if(requestObject.IsSetSds()) { context.Writer.WritePropertyName("sds"); context.Writer.WriteObjectStart(); var marshaller = TlsValidationContextSdsTrustMarshaller.Instance; marshaller.Marshall(requestObject.Sds, context); context.Writer.WriteObjectEnd(); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static ListenerTlsValidationContextTrustMarshaller Instance = new ListenerTlsValidationContextTrustMarshaller(); } }
78
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the appmesh-2019-01-25.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.AppMesh.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AppMesh.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for ListenerTlsValidationContextTrust Object /// </summary> public class ListenerTlsValidationContextTrustUnmarshaller : IUnmarshaller<ListenerTlsValidationContextTrust, XmlUnmarshallerContext>, IUnmarshaller<ListenerTlsValidationContextTrust, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> ListenerTlsValidationContextTrust IUnmarshaller<ListenerTlsValidationContextTrust, XmlUnmarshallerContext>.Unmarshall(XmlUnmarshallerContext context) { throw new NotImplementedException(); } /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public ListenerTlsValidationContextTrust Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; ListenerTlsValidationContextTrust unmarshalledObject = new ListenerTlsValidationContextTrust(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("file", targetDepth)) { var unmarshaller = TlsValidationContextFileTrustUnmarshaller.Instance; unmarshalledObject.File = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("sds", targetDepth)) { var unmarshaller = TlsValidationContextSdsTrustUnmarshaller.Instance; unmarshalledObject.Sds = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static ListenerTlsValidationContextTrustUnmarshaller _instance = new ListenerTlsValidationContextTrustUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static ListenerTlsValidationContextTrustUnmarshaller Instance { get { return _instance; } } } }
98
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the appmesh-2019-01-25.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.AppMesh.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AppMesh.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for ListenerTlsValidationContext Object /// </summary> public class ListenerTlsValidationContextUnmarshaller : IUnmarshaller<ListenerTlsValidationContext, XmlUnmarshallerContext>, IUnmarshaller<ListenerTlsValidationContext, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> ListenerTlsValidationContext IUnmarshaller<ListenerTlsValidationContext, XmlUnmarshallerContext>.Unmarshall(XmlUnmarshallerContext context) { throw new NotImplementedException(); } /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public ListenerTlsValidationContext Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; ListenerTlsValidationContext unmarshalledObject = new ListenerTlsValidationContext(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("subjectAlternativeNames", targetDepth)) { var unmarshaller = SubjectAlternativeNamesUnmarshaller.Instance; unmarshalledObject.SubjectAlternativeNames = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("trust", targetDepth)) { var unmarshaller = ListenerTlsValidationContextTrustUnmarshaller.Instance; unmarshalledObject.Trust = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static ListenerTlsValidationContextUnmarshaller _instance = new ListenerTlsValidationContextUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static ListenerTlsValidationContextUnmarshaller Instance { get { return _instance; } } } }
98
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the appmesh-2019-01-25.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.AppMesh.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AppMesh.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for Listener Object /// </summary> public class ListenerUnmarshaller : IUnmarshaller<Listener, XmlUnmarshallerContext>, IUnmarshaller<Listener, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> Listener IUnmarshaller<Listener, XmlUnmarshallerContext>.Unmarshall(XmlUnmarshallerContext context) { throw new NotImplementedException(); } /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public Listener Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; Listener unmarshalledObject = new Listener(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("connectionPool", targetDepth)) { var unmarshaller = VirtualNodeConnectionPoolUnmarshaller.Instance; unmarshalledObject.ConnectionPool = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("healthCheck", targetDepth)) { var unmarshaller = HealthCheckPolicyUnmarshaller.Instance; unmarshalledObject.HealthCheck = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("outlierDetection", targetDepth)) { var unmarshaller = OutlierDetectionUnmarshaller.Instance; unmarshalledObject.OutlierDetection = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("portMapping", targetDepth)) { var unmarshaller = PortMappingUnmarshaller.Instance; unmarshalledObject.PortMapping = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("timeout", targetDepth)) { var unmarshaller = ListenerTimeoutUnmarshaller.Instance; unmarshalledObject.Timeout = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("tls", targetDepth)) { var unmarshaller = ListenerTlsUnmarshaller.Instance; unmarshalledObject.Tls = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static ListenerUnmarshaller _instance = new ListenerUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static ListenerUnmarshaller Instance { get { return _instance; } } } }
122
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the appmesh-2019-01-25.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Text; using System.Xml.Serialization; using Amazon.AppMesh.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AppMesh.Model.Internal.MarshallTransformations { /// <summary> /// ListGatewayRoutes Request Marshaller /// </summary> public class ListGatewayRoutesRequestMarshaller : IMarshaller<IRequest, ListGatewayRoutesRequest> , IMarshaller<IRequest,AmazonWebServiceRequest> { /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="input"></param> /// <returns></returns> public IRequest Marshall(AmazonWebServiceRequest input) { return this.Marshall((ListGatewayRoutesRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(ListGatewayRoutesRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.AppMesh"); request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2019-01-25"; request.HttpMethod = "GET"; if (!publicRequest.IsSetMeshName()) throw new AmazonAppMeshException("Request object does not have required field MeshName set"); request.AddPathResource("{meshName}", StringUtils.FromString(publicRequest.MeshName)); if (!publicRequest.IsSetVirtualGatewayName()) throw new AmazonAppMeshException("Request object does not have required field VirtualGatewayName set"); request.AddPathResource("{virtualGatewayName}", StringUtils.FromString(publicRequest.VirtualGatewayName)); if (publicRequest.IsSetLimit()) request.Parameters.Add("limit", StringUtils.FromInt(publicRequest.Limit)); if (publicRequest.IsSetMeshOwner()) request.Parameters.Add("meshOwner", StringUtils.FromString(publicRequest.MeshOwner)); if (publicRequest.IsSetNextToken()) request.Parameters.Add("nextToken", StringUtils.FromString(publicRequest.NextToken)); request.ResourcePath = "/v20190125/meshes/{meshName}/virtualGateway/{virtualGatewayName}/gatewayRoutes"; request.UseQueryString = true; return request; } private static ListGatewayRoutesRequestMarshaller _instance = new ListGatewayRoutesRequestMarshaller(); internal static ListGatewayRoutesRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static ListGatewayRoutesRequestMarshaller Instance { get { return _instance; } } } }
100
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the appmesh-2019-01-25.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.AppMesh.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AppMesh.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for ListGatewayRoutes operation /// </summary> public class ListGatewayRoutesResponseUnmarshaller : JsonResponseUnmarshaller { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { ListGatewayRoutesResponse response = new ListGatewayRoutesResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("gatewayRoutes", targetDepth)) { var unmarshaller = new ListUnmarshaller<GatewayRouteRef, GatewayRouteRefUnmarshaller>(GatewayRouteRefUnmarshaller.Instance); response.GatewayRoutes = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("nextToken", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.NextToken = unmarshaller.Unmarshall(context); continue; } } return response; } /// <summary> /// Unmarshaller error response to exception. /// </summary> /// <param name="context"></param> /// <param name="innerException"></param> /// <param name="statusCode"></param> /// <returns></returns> public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) { var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context); errorResponse.InnerException = innerException; errorResponse.StatusCode = statusCode; var responseBodyBytes = context.GetResponseBodyBytes(); using (var streamCopy = new MemoryStream(responseBodyBytes)) using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null)) { if (errorResponse.Code != null && errorResponse.Code.Equals("BadRequestException")) { return BadRequestExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ForbiddenException")) { return ForbiddenExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("InternalServerErrorException")) { return InternalServerErrorExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("NotFoundException")) { return NotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ServiceUnavailableException")) { return ServiceUnavailableExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("TooManyRequestsException")) { return TooManyRequestsExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonAppMeshException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static ListGatewayRoutesResponseUnmarshaller _instance = new ListGatewayRoutesResponseUnmarshaller(); internal static ListGatewayRoutesResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static ListGatewayRoutesResponseUnmarshaller Instance { get { return _instance; } } } }
136
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the appmesh-2019-01-25.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Text; using System.Xml.Serialization; using Amazon.AppMesh.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AppMesh.Model.Internal.MarshallTransformations { /// <summary> /// ListMeshes Request Marshaller /// </summary> public class ListMeshesRequestMarshaller : IMarshaller<IRequest, ListMeshesRequest> , IMarshaller<IRequest,AmazonWebServiceRequest> { /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="input"></param> /// <returns></returns> public IRequest Marshall(AmazonWebServiceRequest input) { return this.Marshall((ListMeshesRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(ListMeshesRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.AppMesh"); request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2019-01-25"; request.HttpMethod = "GET"; if (publicRequest.IsSetLimit()) request.Parameters.Add("limit", StringUtils.FromInt(publicRequest.Limit)); if (publicRequest.IsSetNextToken()) request.Parameters.Add("nextToken", StringUtils.FromString(publicRequest.NextToken)); request.ResourcePath = "/v20190125/meshes"; request.UseQueryString = true; return request; } private static ListMeshesRequestMarshaller _instance = new ListMeshesRequestMarshaller(); internal static ListMeshesRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static ListMeshesRequestMarshaller Instance { get { return _instance; } } } }
91
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the appmesh-2019-01-25.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.AppMesh.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AppMesh.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for ListMeshes operation /// </summary> public class ListMeshesResponseUnmarshaller : JsonResponseUnmarshaller { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { ListMeshesResponse response = new ListMeshesResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("meshes", targetDepth)) { var unmarshaller = new ListUnmarshaller<MeshRef, MeshRefUnmarshaller>(MeshRefUnmarshaller.Instance); response.Meshes = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("nextToken", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.NextToken = unmarshaller.Unmarshall(context); continue; } } return response; } /// <summary> /// Unmarshaller error response to exception. /// </summary> /// <param name="context"></param> /// <param name="innerException"></param> /// <param name="statusCode"></param> /// <returns></returns> public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) { var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context); errorResponse.InnerException = innerException; errorResponse.StatusCode = statusCode; var responseBodyBytes = context.GetResponseBodyBytes(); using (var streamCopy = new MemoryStream(responseBodyBytes)) using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null)) { if (errorResponse.Code != null && errorResponse.Code.Equals("BadRequestException")) { return BadRequestExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ForbiddenException")) { return ForbiddenExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("InternalServerErrorException")) { return InternalServerErrorExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("NotFoundException")) { return NotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ServiceUnavailableException")) { return ServiceUnavailableExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("TooManyRequestsException")) { return TooManyRequestsExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonAppMeshException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static ListMeshesResponseUnmarshaller _instance = new ListMeshesResponseUnmarshaller(); internal static ListMeshesResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static ListMeshesResponseUnmarshaller Instance { get { return _instance; } } } }
136
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the appmesh-2019-01-25.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Text; using System.Xml.Serialization; using Amazon.AppMesh.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AppMesh.Model.Internal.MarshallTransformations { /// <summary> /// ListRoutes Request Marshaller /// </summary> public class ListRoutesRequestMarshaller : IMarshaller<IRequest, ListRoutesRequest> , IMarshaller<IRequest,AmazonWebServiceRequest> { /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="input"></param> /// <returns></returns> public IRequest Marshall(AmazonWebServiceRequest input) { return this.Marshall((ListRoutesRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(ListRoutesRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.AppMesh"); request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2019-01-25"; request.HttpMethod = "GET"; if (!publicRequest.IsSetMeshName()) throw new AmazonAppMeshException("Request object does not have required field MeshName set"); request.AddPathResource("{meshName}", StringUtils.FromString(publicRequest.MeshName)); if (!publicRequest.IsSetVirtualRouterName()) throw new AmazonAppMeshException("Request object does not have required field VirtualRouterName set"); request.AddPathResource("{virtualRouterName}", StringUtils.FromString(publicRequest.VirtualRouterName)); if (publicRequest.IsSetLimit()) request.Parameters.Add("limit", StringUtils.FromInt(publicRequest.Limit)); if (publicRequest.IsSetMeshOwner()) request.Parameters.Add("meshOwner", StringUtils.FromString(publicRequest.MeshOwner)); if (publicRequest.IsSetNextToken()) request.Parameters.Add("nextToken", StringUtils.FromString(publicRequest.NextToken)); request.ResourcePath = "/v20190125/meshes/{meshName}/virtualRouter/{virtualRouterName}/routes"; request.UseQueryString = true; return request; } private static ListRoutesRequestMarshaller _instance = new ListRoutesRequestMarshaller(); internal static ListRoutesRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static ListRoutesRequestMarshaller Instance { get { return _instance; } } } }
100
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the appmesh-2019-01-25.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.AppMesh.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AppMesh.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for ListRoutes operation /// </summary> public class ListRoutesResponseUnmarshaller : JsonResponseUnmarshaller { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { ListRoutesResponse response = new ListRoutesResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("nextToken", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.NextToken = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("routes", targetDepth)) { var unmarshaller = new ListUnmarshaller<RouteRef, RouteRefUnmarshaller>(RouteRefUnmarshaller.Instance); response.Routes = unmarshaller.Unmarshall(context); continue; } } return response; } /// <summary> /// Unmarshaller error response to exception. /// </summary> /// <param name="context"></param> /// <param name="innerException"></param> /// <param name="statusCode"></param> /// <returns></returns> public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) { var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context); errorResponse.InnerException = innerException; errorResponse.StatusCode = statusCode; var responseBodyBytes = context.GetResponseBodyBytes(); using (var streamCopy = new MemoryStream(responseBodyBytes)) using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null)) { if (errorResponse.Code != null && errorResponse.Code.Equals("BadRequestException")) { return BadRequestExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ForbiddenException")) { return ForbiddenExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("InternalServerErrorException")) { return InternalServerErrorExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("NotFoundException")) { return NotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ServiceUnavailableException")) { return ServiceUnavailableExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("TooManyRequestsException")) { return TooManyRequestsExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonAppMeshException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static ListRoutesResponseUnmarshaller _instance = new ListRoutesResponseUnmarshaller(); internal static ListRoutesResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static ListRoutesResponseUnmarshaller Instance { get { return _instance; } } } }
136
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the appmesh-2019-01-25.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Text; using System.Xml.Serialization; using Amazon.AppMesh.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AppMesh.Model.Internal.MarshallTransformations { /// <summary> /// ListTagsForResource Request Marshaller /// </summary> public class ListTagsForResourceRequestMarshaller : IMarshaller<IRequest, ListTagsForResourceRequest> , IMarshaller<IRequest,AmazonWebServiceRequest> { /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="input"></param> /// <returns></returns> public IRequest Marshall(AmazonWebServiceRequest input) { return this.Marshall((ListTagsForResourceRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(ListTagsForResourceRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.AppMesh"); request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2019-01-25"; request.HttpMethod = "GET"; if (publicRequest.IsSetLimit()) request.Parameters.Add("limit", StringUtils.FromInt(publicRequest.Limit)); if (publicRequest.IsSetNextToken()) request.Parameters.Add("nextToken", StringUtils.FromString(publicRequest.NextToken)); if (publicRequest.IsSetResourceArn()) request.Parameters.Add("resourceArn", StringUtils.FromString(publicRequest.ResourceArn)); request.ResourcePath = "/v20190125/tags"; request.UseQueryString = true; return request; } private static ListTagsForResourceRequestMarshaller _instance = new ListTagsForResourceRequestMarshaller(); internal static ListTagsForResourceRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static ListTagsForResourceRequestMarshaller Instance { get { return _instance; } } } }
94
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the appmesh-2019-01-25.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.AppMesh.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AppMesh.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for ListTagsForResource operation /// </summary> public class ListTagsForResourceResponseUnmarshaller : JsonResponseUnmarshaller { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { ListTagsForResourceResponse response = new ListTagsForResourceResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("nextToken", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.NextToken = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("tags", targetDepth)) { var unmarshaller = new ListUnmarshaller<TagRef, TagRefUnmarshaller>(TagRefUnmarshaller.Instance); response.Tags = unmarshaller.Unmarshall(context); continue; } } return response; } /// <summary> /// Unmarshaller error response to exception. /// </summary> /// <param name="context"></param> /// <param name="innerException"></param> /// <param name="statusCode"></param> /// <returns></returns> public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) { var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context); errorResponse.InnerException = innerException; errorResponse.StatusCode = statusCode; var responseBodyBytes = context.GetResponseBodyBytes(); using (var streamCopy = new MemoryStream(responseBodyBytes)) using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null)) { if (errorResponse.Code != null && errorResponse.Code.Equals("BadRequestException")) { return BadRequestExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ForbiddenException")) { return ForbiddenExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("InternalServerErrorException")) { return InternalServerErrorExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("NotFoundException")) { return NotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ServiceUnavailableException")) { return ServiceUnavailableExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("TooManyRequestsException")) { return TooManyRequestsExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonAppMeshException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static ListTagsForResourceResponseUnmarshaller _instance = new ListTagsForResourceResponseUnmarshaller(); internal static ListTagsForResourceResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static ListTagsForResourceResponseUnmarshaller Instance { get { return _instance; } } } }
136
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the appmesh-2019-01-25.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Text; using System.Xml.Serialization; using Amazon.AppMesh.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AppMesh.Model.Internal.MarshallTransformations { /// <summary> /// ListVirtualGateways Request Marshaller /// </summary> public class ListVirtualGatewaysRequestMarshaller : IMarshaller<IRequest, ListVirtualGatewaysRequest> , IMarshaller<IRequest,AmazonWebServiceRequest> { /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="input"></param> /// <returns></returns> public IRequest Marshall(AmazonWebServiceRequest input) { return this.Marshall((ListVirtualGatewaysRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(ListVirtualGatewaysRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.AppMesh"); request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2019-01-25"; request.HttpMethod = "GET"; if (!publicRequest.IsSetMeshName()) throw new AmazonAppMeshException("Request object does not have required field MeshName set"); request.AddPathResource("{meshName}", StringUtils.FromString(publicRequest.MeshName)); if (publicRequest.IsSetLimit()) request.Parameters.Add("limit", StringUtils.FromInt(publicRequest.Limit)); if (publicRequest.IsSetMeshOwner()) request.Parameters.Add("meshOwner", StringUtils.FromString(publicRequest.MeshOwner)); if (publicRequest.IsSetNextToken()) request.Parameters.Add("nextToken", StringUtils.FromString(publicRequest.NextToken)); request.ResourcePath = "/v20190125/meshes/{meshName}/virtualGateways"; request.UseQueryString = true; return request; } private static ListVirtualGatewaysRequestMarshaller _instance = new ListVirtualGatewaysRequestMarshaller(); internal static ListVirtualGatewaysRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static ListVirtualGatewaysRequestMarshaller Instance { get { return _instance; } } } }
97
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the appmesh-2019-01-25.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.AppMesh.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AppMesh.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for ListVirtualGateways operation /// </summary> public class ListVirtualGatewaysResponseUnmarshaller : JsonResponseUnmarshaller { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { ListVirtualGatewaysResponse response = new ListVirtualGatewaysResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("nextToken", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.NextToken = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("virtualGateways", targetDepth)) { var unmarshaller = new ListUnmarshaller<VirtualGatewayRef, VirtualGatewayRefUnmarshaller>(VirtualGatewayRefUnmarshaller.Instance); response.VirtualGateways = unmarshaller.Unmarshall(context); continue; } } return response; } /// <summary> /// Unmarshaller error response to exception. /// </summary> /// <param name="context"></param> /// <param name="innerException"></param> /// <param name="statusCode"></param> /// <returns></returns> public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) { var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context); errorResponse.InnerException = innerException; errorResponse.StatusCode = statusCode; var responseBodyBytes = context.GetResponseBodyBytes(); using (var streamCopy = new MemoryStream(responseBodyBytes)) using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null)) { if (errorResponse.Code != null && errorResponse.Code.Equals("BadRequestException")) { return BadRequestExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ForbiddenException")) { return ForbiddenExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("InternalServerErrorException")) { return InternalServerErrorExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("NotFoundException")) { return NotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ServiceUnavailableException")) { return ServiceUnavailableExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("TooManyRequestsException")) { return TooManyRequestsExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonAppMeshException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static ListVirtualGatewaysResponseUnmarshaller _instance = new ListVirtualGatewaysResponseUnmarshaller(); internal static ListVirtualGatewaysResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static ListVirtualGatewaysResponseUnmarshaller Instance { get { return _instance; } } } }
136
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the appmesh-2019-01-25.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Text; using System.Xml.Serialization; using Amazon.AppMesh.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AppMesh.Model.Internal.MarshallTransformations { /// <summary> /// ListVirtualNodes Request Marshaller /// </summary> public class ListVirtualNodesRequestMarshaller : IMarshaller<IRequest, ListVirtualNodesRequest> , IMarshaller<IRequest,AmazonWebServiceRequest> { /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="input"></param> /// <returns></returns> public IRequest Marshall(AmazonWebServiceRequest input) { return this.Marshall((ListVirtualNodesRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(ListVirtualNodesRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.AppMesh"); request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2019-01-25"; request.HttpMethod = "GET"; if (!publicRequest.IsSetMeshName()) throw new AmazonAppMeshException("Request object does not have required field MeshName set"); request.AddPathResource("{meshName}", StringUtils.FromString(publicRequest.MeshName)); if (publicRequest.IsSetLimit()) request.Parameters.Add("limit", StringUtils.FromInt(publicRequest.Limit)); if (publicRequest.IsSetMeshOwner()) request.Parameters.Add("meshOwner", StringUtils.FromString(publicRequest.MeshOwner)); if (publicRequest.IsSetNextToken()) request.Parameters.Add("nextToken", StringUtils.FromString(publicRequest.NextToken)); request.ResourcePath = "/v20190125/meshes/{meshName}/virtualNodes"; request.UseQueryString = true; return request; } private static ListVirtualNodesRequestMarshaller _instance = new ListVirtualNodesRequestMarshaller(); internal static ListVirtualNodesRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static ListVirtualNodesRequestMarshaller Instance { get { return _instance; } } } }
97
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the appmesh-2019-01-25.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.AppMesh.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AppMesh.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for ListVirtualNodes operation /// </summary> public class ListVirtualNodesResponseUnmarshaller : JsonResponseUnmarshaller { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { ListVirtualNodesResponse response = new ListVirtualNodesResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("nextToken", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.NextToken = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("virtualNodes", targetDepth)) { var unmarshaller = new ListUnmarshaller<VirtualNodeRef, VirtualNodeRefUnmarshaller>(VirtualNodeRefUnmarshaller.Instance); response.VirtualNodes = unmarshaller.Unmarshall(context); continue; } } return response; } /// <summary> /// Unmarshaller error response to exception. /// </summary> /// <param name="context"></param> /// <param name="innerException"></param> /// <param name="statusCode"></param> /// <returns></returns> public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) { var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context); errorResponse.InnerException = innerException; errorResponse.StatusCode = statusCode; var responseBodyBytes = context.GetResponseBodyBytes(); using (var streamCopy = new MemoryStream(responseBodyBytes)) using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null)) { if (errorResponse.Code != null && errorResponse.Code.Equals("BadRequestException")) { return BadRequestExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ForbiddenException")) { return ForbiddenExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("InternalServerErrorException")) { return InternalServerErrorExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("NotFoundException")) { return NotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ServiceUnavailableException")) { return ServiceUnavailableExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("TooManyRequestsException")) { return TooManyRequestsExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonAppMeshException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static ListVirtualNodesResponseUnmarshaller _instance = new ListVirtualNodesResponseUnmarshaller(); internal static ListVirtualNodesResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static ListVirtualNodesResponseUnmarshaller Instance { get { return _instance; } } } }
136
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the appmesh-2019-01-25.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Text; using System.Xml.Serialization; using Amazon.AppMesh.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AppMesh.Model.Internal.MarshallTransformations { /// <summary> /// ListVirtualRouters Request Marshaller /// </summary> public class ListVirtualRoutersRequestMarshaller : IMarshaller<IRequest, ListVirtualRoutersRequest> , IMarshaller<IRequest,AmazonWebServiceRequest> { /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="input"></param> /// <returns></returns> public IRequest Marshall(AmazonWebServiceRequest input) { return this.Marshall((ListVirtualRoutersRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(ListVirtualRoutersRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.AppMesh"); request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2019-01-25"; request.HttpMethod = "GET"; if (!publicRequest.IsSetMeshName()) throw new AmazonAppMeshException("Request object does not have required field MeshName set"); request.AddPathResource("{meshName}", StringUtils.FromString(publicRequest.MeshName)); if (publicRequest.IsSetLimit()) request.Parameters.Add("limit", StringUtils.FromInt(publicRequest.Limit)); if (publicRequest.IsSetMeshOwner()) request.Parameters.Add("meshOwner", StringUtils.FromString(publicRequest.MeshOwner)); if (publicRequest.IsSetNextToken()) request.Parameters.Add("nextToken", StringUtils.FromString(publicRequest.NextToken)); request.ResourcePath = "/v20190125/meshes/{meshName}/virtualRouters"; request.UseQueryString = true; return request; } private static ListVirtualRoutersRequestMarshaller _instance = new ListVirtualRoutersRequestMarshaller(); internal static ListVirtualRoutersRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static ListVirtualRoutersRequestMarshaller Instance { get { return _instance; } } } }
97
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the appmesh-2019-01-25.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.AppMesh.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AppMesh.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for ListVirtualRouters operation /// </summary> public class ListVirtualRoutersResponseUnmarshaller : JsonResponseUnmarshaller { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { ListVirtualRoutersResponse response = new ListVirtualRoutersResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("nextToken", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.NextToken = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("virtualRouters", targetDepth)) { var unmarshaller = new ListUnmarshaller<VirtualRouterRef, VirtualRouterRefUnmarshaller>(VirtualRouterRefUnmarshaller.Instance); response.VirtualRouters = unmarshaller.Unmarshall(context); continue; } } return response; } /// <summary> /// Unmarshaller error response to exception. /// </summary> /// <param name="context"></param> /// <param name="innerException"></param> /// <param name="statusCode"></param> /// <returns></returns> public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) { var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context); errorResponse.InnerException = innerException; errorResponse.StatusCode = statusCode; var responseBodyBytes = context.GetResponseBodyBytes(); using (var streamCopy = new MemoryStream(responseBodyBytes)) using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null)) { if (errorResponse.Code != null && errorResponse.Code.Equals("BadRequestException")) { return BadRequestExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ForbiddenException")) { return ForbiddenExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("InternalServerErrorException")) { return InternalServerErrorExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("NotFoundException")) { return NotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ServiceUnavailableException")) { return ServiceUnavailableExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("TooManyRequestsException")) { return TooManyRequestsExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonAppMeshException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static ListVirtualRoutersResponseUnmarshaller _instance = new ListVirtualRoutersResponseUnmarshaller(); internal static ListVirtualRoutersResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static ListVirtualRoutersResponseUnmarshaller Instance { get { return _instance; } } } }
136
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the appmesh-2019-01-25.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Text; using System.Xml.Serialization; using Amazon.AppMesh.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AppMesh.Model.Internal.MarshallTransformations { /// <summary> /// ListVirtualServices Request Marshaller /// </summary> public class ListVirtualServicesRequestMarshaller : IMarshaller<IRequest, ListVirtualServicesRequest> , IMarshaller<IRequest,AmazonWebServiceRequest> { /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="input"></param> /// <returns></returns> public IRequest Marshall(AmazonWebServiceRequest input) { return this.Marshall((ListVirtualServicesRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(ListVirtualServicesRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.AppMesh"); request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2019-01-25"; request.HttpMethod = "GET"; if (!publicRequest.IsSetMeshName()) throw new AmazonAppMeshException("Request object does not have required field MeshName set"); request.AddPathResource("{meshName}", StringUtils.FromString(publicRequest.MeshName)); if (publicRequest.IsSetLimit()) request.Parameters.Add("limit", StringUtils.FromInt(publicRequest.Limit)); if (publicRequest.IsSetMeshOwner()) request.Parameters.Add("meshOwner", StringUtils.FromString(publicRequest.MeshOwner)); if (publicRequest.IsSetNextToken()) request.Parameters.Add("nextToken", StringUtils.FromString(publicRequest.NextToken)); request.ResourcePath = "/v20190125/meshes/{meshName}/virtualServices"; request.UseQueryString = true; return request; } private static ListVirtualServicesRequestMarshaller _instance = new ListVirtualServicesRequestMarshaller(); internal static ListVirtualServicesRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static ListVirtualServicesRequestMarshaller Instance { get { return _instance; } } } }
97
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the appmesh-2019-01-25.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.AppMesh.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AppMesh.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for ListVirtualServices operation /// </summary> public class ListVirtualServicesResponseUnmarshaller : JsonResponseUnmarshaller { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { ListVirtualServicesResponse response = new ListVirtualServicesResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("nextToken", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.NextToken = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("virtualServices", targetDepth)) { var unmarshaller = new ListUnmarshaller<VirtualServiceRef, VirtualServiceRefUnmarshaller>(VirtualServiceRefUnmarshaller.Instance); response.VirtualServices = unmarshaller.Unmarshall(context); continue; } } return response; } /// <summary> /// Unmarshaller error response to exception. /// </summary> /// <param name="context"></param> /// <param name="innerException"></param> /// <param name="statusCode"></param> /// <returns></returns> public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) { var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context); errorResponse.InnerException = innerException; errorResponse.StatusCode = statusCode; var responseBodyBytes = context.GetResponseBodyBytes(); using (var streamCopy = new MemoryStream(responseBodyBytes)) using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null)) { if (errorResponse.Code != null && errorResponse.Code.Equals("BadRequestException")) { return BadRequestExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ForbiddenException")) { return ForbiddenExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("InternalServerErrorException")) { return InternalServerErrorExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("NotFoundException")) { return NotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ServiceUnavailableException")) { return ServiceUnavailableExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("TooManyRequestsException")) { return TooManyRequestsExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonAppMeshException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static ListVirtualServicesResponseUnmarshaller _instance = new ListVirtualServicesResponseUnmarshaller(); internal static ListVirtualServicesResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static ListVirtualServicesResponseUnmarshaller Instance { get { return _instance; } } } }
136
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the appmesh-2019-01-25.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Text; using System.Xml.Serialization; using Amazon.AppMesh.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AppMesh.Model.Internal.MarshallTransformations { /// <summary> /// LoggingFormat Marshaller /// </summary> public class LoggingFormatMarshaller : IRequestMarshaller<LoggingFormat, JsonMarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="requestObject"></param> /// <param name="context"></param> /// <returns></returns> public void Marshall(LoggingFormat requestObject, JsonMarshallerContext context) { if(requestObject.IsSetJson()) { context.Writer.WritePropertyName("json"); context.Writer.WriteArrayStart(); foreach(var requestObjectJsonListValue in requestObject.Json) { context.Writer.WriteObjectStart(); var marshaller = JsonFormatRefMarshaller.Instance; marshaller.Marshall(requestObjectJsonListValue, context); context.Writer.WriteObjectEnd(); } context.Writer.WriteArrayEnd(); } if(requestObject.IsSetText()) { context.Writer.WritePropertyName("text"); context.Writer.Write(requestObject.Text); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static LoggingFormatMarshaller Instance = new LoggingFormatMarshaller(); } }
78
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the appmesh-2019-01-25.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.AppMesh.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AppMesh.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for LoggingFormat Object /// </summary> public class LoggingFormatUnmarshaller : IUnmarshaller<LoggingFormat, XmlUnmarshallerContext>, IUnmarshaller<LoggingFormat, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> LoggingFormat IUnmarshaller<LoggingFormat, XmlUnmarshallerContext>.Unmarshall(XmlUnmarshallerContext context) { throw new NotImplementedException(); } /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public LoggingFormat Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; LoggingFormat unmarshalledObject = new LoggingFormat(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("json", targetDepth)) { var unmarshaller = new ListUnmarshaller<JsonFormatRef, JsonFormatRefUnmarshaller>(JsonFormatRefUnmarshaller.Instance); unmarshalledObject.Json = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("text", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Text = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static LoggingFormatUnmarshaller _instance = new LoggingFormatUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static LoggingFormatUnmarshaller Instance { get { return _instance; } } } }
98
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the appmesh-2019-01-25.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Text; using System.Xml.Serialization; using Amazon.AppMesh.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AppMesh.Model.Internal.MarshallTransformations { /// <summary> /// Logging Marshaller /// </summary> public class LoggingMarshaller : IRequestMarshaller<Logging, JsonMarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="requestObject"></param> /// <param name="context"></param> /// <returns></returns> public void Marshall(Logging requestObject, JsonMarshallerContext context) { if(requestObject.IsSetAccessLog()) { context.Writer.WritePropertyName("accessLog"); context.Writer.WriteObjectStart(); var marshaller = AccessLogMarshaller.Instance; marshaller.Marshall(requestObject.AccessLog, context); context.Writer.WriteObjectEnd(); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static LoggingMarshaller Instance = new LoggingMarshaller(); } }
67
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the appmesh-2019-01-25.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.AppMesh.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AppMesh.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for Logging Object /// </summary> public class LoggingUnmarshaller : IUnmarshaller<Logging, XmlUnmarshallerContext>, IUnmarshaller<Logging, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> Logging IUnmarshaller<Logging, XmlUnmarshallerContext>.Unmarshall(XmlUnmarshallerContext context) { throw new NotImplementedException(); } /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public Logging Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; Logging unmarshalledObject = new Logging(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("accessLog", targetDepth)) { var unmarshaller = AccessLogUnmarshaller.Instance; unmarshalledObject.AccessLog = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static LoggingUnmarshaller _instance = new LoggingUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static LoggingUnmarshaller Instance { get { return _instance; } } } }
92
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the appmesh-2019-01-25.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Text; using System.Xml.Serialization; using Amazon.AppMesh.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AppMesh.Model.Internal.MarshallTransformations { /// <summary> /// MatchRange Marshaller /// </summary> public class MatchRangeMarshaller : IRequestMarshaller<MatchRange, JsonMarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="requestObject"></param> /// <param name="context"></param> /// <returns></returns> public void Marshall(MatchRange requestObject, JsonMarshallerContext context) { if(requestObject.IsSetEnd()) { context.Writer.WritePropertyName("end"); context.Writer.Write(requestObject.End); } if(requestObject.IsSetStart()) { context.Writer.WritePropertyName("start"); context.Writer.Write(requestObject.Start); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static MatchRangeMarshaller Instance = new MatchRangeMarshaller(); } }
68
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the appmesh-2019-01-25.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.AppMesh.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AppMesh.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for MatchRange Object /// </summary> public class MatchRangeUnmarshaller : IUnmarshaller<MatchRange, XmlUnmarshallerContext>, IUnmarshaller<MatchRange, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> MatchRange IUnmarshaller<MatchRange, XmlUnmarshallerContext>.Unmarshall(XmlUnmarshallerContext context) { throw new NotImplementedException(); } /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public MatchRange Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; MatchRange unmarshalledObject = new MatchRange(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("end", targetDepth)) { var unmarshaller = LongUnmarshaller.Instance; unmarshalledObject.End = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("start", targetDepth)) { var unmarshaller = LongUnmarshaller.Instance; unmarshalledObject.Start = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static MatchRangeUnmarshaller _instance = new MatchRangeUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static MatchRangeUnmarshaller Instance { get { return _instance; } } } }
98
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the appmesh-2019-01-25.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.AppMesh.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AppMesh.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for MeshData Object /// </summary> public class MeshDataUnmarshaller : IUnmarshaller<MeshData, XmlUnmarshallerContext>, IUnmarshaller<MeshData, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> MeshData IUnmarshaller<MeshData, XmlUnmarshallerContext>.Unmarshall(XmlUnmarshallerContext context) { throw new NotImplementedException(); } /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public MeshData Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; MeshData unmarshalledObject = new MeshData(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("meshName", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.MeshName = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("metadata", targetDepth)) { var unmarshaller = ResourceMetadataUnmarshaller.Instance; unmarshalledObject.Metadata = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("spec", targetDepth)) { var unmarshaller = MeshSpecUnmarshaller.Instance; unmarshalledObject.Spec = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("status", targetDepth)) { var unmarshaller = MeshStatusUnmarshaller.Instance; unmarshalledObject.Status = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static MeshDataUnmarshaller _instance = new MeshDataUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static MeshDataUnmarshaller Instance { get { return _instance; } } } }
110
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the appmesh-2019-01-25.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.AppMesh.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AppMesh.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for MeshRef Object /// </summary> public class MeshRefUnmarshaller : IUnmarshaller<MeshRef, XmlUnmarshallerContext>, IUnmarshaller<MeshRef, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> MeshRef IUnmarshaller<MeshRef, XmlUnmarshallerContext>.Unmarshall(XmlUnmarshallerContext context) { throw new NotImplementedException(); } /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public MeshRef Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; MeshRef unmarshalledObject = new MeshRef(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("arn", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Arn = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("createdAt", targetDepth)) { var unmarshaller = DateTimeUnmarshaller.Instance; unmarshalledObject.CreatedAt = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("lastUpdatedAt", targetDepth)) { var unmarshaller = DateTimeUnmarshaller.Instance; unmarshalledObject.LastUpdatedAt = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("meshName", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.MeshName = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("meshOwner", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.MeshOwner = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("resourceOwner", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.ResourceOwner = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("version", targetDepth)) { var unmarshaller = LongUnmarshaller.Instance; unmarshalledObject.Version = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static MeshRefUnmarshaller _instance = new MeshRefUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static MeshRefUnmarshaller Instance { get { return _instance; } } } }
128
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the appmesh-2019-01-25.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Text; using System.Xml.Serialization; using Amazon.AppMesh.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AppMesh.Model.Internal.MarshallTransformations { /// <summary> /// MeshServiceDiscovery Marshaller /// </summary> public class MeshServiceDiscoveryMarshaller : IRequestMarshaller<MeshServiceDiscovery, JsonMarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="requestObject"></param> /// <param name="context"></param> /// <returns></returns> public void Marshall(MeshServiceDiscovery requestObject, JsonMarshallerContext context) { if(requestObject.IsSetIpPreference()) { context.Writer.WritePropertyName("ipPreference"); context.Writer.Write(requestObject.IpPreference); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static MeshServiceDiscoveryMarshaller Instance = new MeshServiceDiscoveryMarshaller(); } }
62
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the appmesh-2019-01-25.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.AppMesh.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AppMesh.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for MeshServiceDiscovery Object /// </summary> public class MeshServiceDiscoveryUnmarshaller : IUnmarshaller<MeshServiceDiscovery, XmlUnmarshallerContext>, IUnmarshaller<MeshServiceDiscovery, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> MeshServiceDiscovery IUnmarshaller<MeshServiceDiscovery, XmlUnmarshallerContext>.Unmarshall(XmlUnmarshallerContext context) { throw new NotImplementedException(); } /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public MeshServiceDiscovery Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; MeshServiceDiscovery unmarshalledObject = new MeshServiceDiscovery(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("ipPreference", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.IpPreference = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static MeshServiceDiscoveryUnmarshaller _instance = new MeshServiceDiscoveryUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static MeshServiceDiscoveryUnmarshaller Instance { get { return _instance; } } } }
92
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the appmesh-2019-01-25.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Text; using System.Xml.Serialization; using Amazon.AppMesh.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AppMesh.Model.Internal.MarshallTransformations { /// <summary> /// MeshSpec Marshaller /// </summary> public class MeshSpecMarshaller : IRequestMarshaller<MeshSpec, JsonMarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="requestObject"></param> /// <param name="context"></param> /// <returns></returns> public void Marshall(MeshSpec requestObject, JsonMarshallerContext context) { if(requestObject.IsSetEgressFilter()) { context.Writer.WritePropertyName("egressFilter"); context.Writer.WriteObjectStart(); var marshaller = EgressFilterMarshaller.Instance; marshaller.Marshall(requestObject.EgressFilter, context); context.Writer.WriteObjectEnd(); } if(requestObject.IsSetServiceDiscovery()) { context.Writer.WritePropertyName("serviceDiscovery"); context.Writer.WriteObjectStart(); var marshaller = MeshServiceDiscoveryMarshaller.Instance; marshaller.Marshall(requestObject.ServiceDiscovery, context); context.Writer.WriteObjectEnd(); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static MeshSpecMarshaller Instance = new MeshSpecMarshaller(); } }
78
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the appmesh-2019-01-25.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.AppMesh.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AppMesh.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for MeshSpec Object /// </summary> public class MeshSpecUnmarshaller : IUnmarshaller<MeshSpec, XmlUnmarshallerContext>, IUnmarshaller<MeshSpec, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> MeshSpec IUnmarshaller<MeshSpec, XmlUnmarshallerContext>.Unmarshall(XmlUnmarshallerContext context) { throw new NotImplementedException(); } /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public MeshSpec Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; MeshSpec unmarshalledObject = new MeshSpec(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("egressFilter", targetDepth)) { var unmarshaller = EgressFilterUnmarshaller.Instance; unmarshalledObject.EgressFilter = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("serviceDiscovery", targetDepth)) { var unmarshaller = MeshServiceDiscoveryUnmarshaller.Instance; unmarshalledObject.ServiceDiscovery = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static MeshSpecUnmarshaller _instance = new MeshSpecUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static MeshSpecUnmarshaller Instance { get { return _instance; } } } }
98
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the appmesh-2019-01-25.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.AppMesh.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AppMesh.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for MeshStatus Object /// </summary> public class MeshStatusUnmarshaller : IUnmarshaller<MeshStatus, XmlUnmarshallerContext>, IUnmarshaller<MeshStatus, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> MeshStatus IUnmarshaller<MeshStatus, XmlUnmarshallerContext>.Unmarshall(XmlUnmarshallerContext context) { throw new NotImplementedException(); } /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public MeshStatus Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; MeshStatus unmarshalledObject = new MeshStatus(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("status", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Status = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static MeshStatusUnmarshaller _instance = new MeshStatusUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static MeshStatusUnmarshaller Instance { get { return _instance; } } } }
92
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the appmesh-2019-01-25.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.AppMesh.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AppMesh.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for NotFoundException Object /// </summary> public class NotFoundExceptionUnmarshaller : IErrorResponseUnmarshaller<NotFoundException, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public NotFoundException Unmarshall(JsonUnmarshallerContext context) { return this.Unmarshall(context, new Amazon.Runtime.Internal.ErrorResponse()); } /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <param name="errorResponse"></param> /// <returns></returns> public NotFoundException Unmarshall(JsonUnmarshallerContext context, Amazon.Runtime.Internal.ErrorResponse errorResponse) { context.Read(); NotFoundException unmarshalledObject = new NotFoundException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { } return unmarshalledObject; } private static NotFoundExceptionUnmarshaller _instance = new NotFoundExceptionUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static NotFoundExceptionUnmarshaller Instance { get { return _instance; } } } }
85
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the appmesh-2019-01-25.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Text; using System.Xml.Serialization; using Amazon.AppMesh.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AppMesh.Model.Internal.MarshallTransformations { /// <summary> /// OutlierDetection Marshaller /// </summary> public class OutlierDetectionMarshaller : IRequestMarshaller<OutlierDetection, JsonMarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="requestObject"></param> /// <param name="context"></param> /// <returns></returns> public void Marshall(OutlierDetection requestObject, JsonMarshallerContext context) { if(requestObject.IsSetBaseEjectionDuration()) { context.Writer.WritePropertyName("baseEjectionDuration"); context.Writer.WriteObjectStart(); var marshaller = DurationMarshaller.Instance; marshaller.Marshall(requestObject.BaseEjectionDuration, context); context.Writer.WriteObjectEnd(); } if(requestObject.IsSetInterval()) { context.Writer.WritePropertyName("interval"); context.Writer.WriteObjectStart(); var marshaller = DurationMarshaller.Instance; marshaller.Marshall(requestObject.Interval, context); context.Writer.WriteObjectEnd(); } if(requestObject.IsSetMaxEjectionPercent()) { context.Writer.WritePropertyName("maxEjectionPercent"); context.Writer.Write(requestObject.MaxEjectionPercent); } if(requestObject.IsSetMaxServerErrors()) { context.Writer.WritePropertyName("maxServerErrors"); context.Writer.Write(requestObject.MaxServerErrors); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static OutlierDetectionMarshaller Instance = new OutlierDetectionMarshaller(); } }
90
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the appmesh-2019-01-25.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.AppMesh.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AppMesh.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for OutlierDetection Object /// </summary> public class OutlierDetectionUnmarshaller : IUnmarshaller<OutlierDetection, XmlUnmarshallerContext>, IUnmarshaller<OutlierDetection, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> OutlierDetection IUnmarshaller<OutlierDetection, XmlUnmarshallerContext>.Unmarshall(XmlUnmarshallerContext context) { throw new NotImplementedException(); } /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public OutlierDetection Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; OutlierDetection unmarshalledObject = new OutlierDetection(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("baseEjectionDuration", targetDepth)) { var unmarshaller = DurationUnmarshaller.Instance; unmarshalledObject.BaseEjectionDuration = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("interval", targetDepth)) { var unmarshaller = DurationUnmarshaller.Instance; unmarshalledObject.Interval = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("maxEjectionPercent", targetDepth)) { var unmarshaller = IntUnmarshaller.Instance; unmarshalledObject.MaxEjectionPercent = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("maxServerErrors", targetDepth)) { var unmarshaller = LongUnmarshaller.Instance; unmarshalledObject.MaxServerErrors = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static OutlierDetectionUnmarshaller _instance = new OutlierDetectionUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static OutlierDetectionUnmarshaller Instance { get { return _instance; } } } }
110
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the appmesh-2019-01-25.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Text; using System.Xml.Serialization; using Amazon.AppMesh.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AppMesh.Model.Internal.MarshallTransformations { /// <summary> /// PortMapping Marshaller /// </summary> public class PortMappingMarshaller : IRequestMarshaller<PortMapping, JsonMarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="requestObject"></param> /// <param name="context"></param> /// <returns></returns> public void Marshall(PortMapping requestObject, JsonMarshallerContext context) { if(requestObject.IsSetPort()) { context.Writer.WritePropertyName("port"); context.Writer.Write(requestObject.Port); } if(requestObject.IsSetProtocol()) { context.Writer.WritePropertyName("protocol"); context.Writer.Write(requestObject.Protocol); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static PortMappingMarshaller Instance = new PortMappingMarshaller(); } }
68
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the appmesh-2019-01-25.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.AppMesh.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AppMesh.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for PortMapping Object /// </summary> public class PortMappingUnmarshaller : IUnmarshaller<PortMapping, XmlUnmarshallerContext>, IUnmarshaller<PortMapping, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> PortMapping IUnmarshaller<PortMapping, XmlUnmarshallerContext>.Unmarshall(XmlUnmarshallerContext context) { throw new NotImplementedException(); } /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public PortMapping Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; PortMapping unmarshalledObject = new PortMapping(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("port", targetDepth)) { var unmarshaller = IntUnmarshaller.Instance; unmarshalledObject.Port = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("protocol", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Protocol = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static PortMappingUnmarshaller _instance = new PortMappingUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static PortMappingUnmarshaller Instance { get { return _instance; } } } }
98
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the appmesh-2019-01-25.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Text; using System.Xml.Serialization; using Amazon.AppMesh.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AppMesh.Model.Internal.MarshallTransformations { /// <summary> /// QueryParameterMatch Marshaller /// </summary> public class QueryParameterMatchMarshaller : IRequestMarshaller<QueryParameterMatch, JsonMarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="requestObject"></param> /// <param name="context"></param> /// <returns></returns> public void Marshall(QueryParameterMatch requestObject, JsonMarshallerContext context) { if(requestObject.IsSetExact()) { context.Writer.WritePropertyName("exact"); context.Writer.Write(requestObject.Exact); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static QueryParameterMatchMarshaller Instance = new QueryParameterMatchMarshaller(); } }
62
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the appmesh-2019-01-25.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.AppMesh.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AppMesh.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for QueryParameterMatch Object /// </summary> public class QueryParameterMatchUnmarshaller : IUnmarshaller<QueryParameterMatch, XmlUnmarshallerContext>, IUnmarshaller<QueryParameterMatch, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> QueryParameterMatch IUnmarshaller<QueryParameterMatch, XmlUnmarshallerContext>.Unmarshall(XmlUnmarshallerContext context) { throw new NotImplementedException(); } /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public QueryParameterMatch Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; QueryParameterMatch unmarshalledObject = new QueryParameterMatch(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("exact", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Exact = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static QueryParameterMatchUnmarshaller _instance = new QueryParameterMatchUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static QueryParameterMatchUnmarshaller Instance { get { return _instance; } } } }
92
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the appmesh-2019-01-25.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.AppMesh.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AppMesh.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for ResourceInUseException Object /// </summary> public class ResourceInUseExceptionUnmarshaller : IErrorResponseUnmarshaller<ResourceInUseException, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public ResourceInUseException Unmarshall(JsonUnmarshallerContext context) { return this.Unmarshall(context, new Amazon.Runtime.Internal.ErrorResponse()); } /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <param name="errorResponse"></param> /// <returns></returns> public ResourceInUseException Unmarshall(JsonUnmarshallerContext context, Amazon.Runtime.Internal.ErrorResponse errorResponse) { context.Read(); ResourceInUseException unmarshalledObject = new ResourceInUseException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { } return unmarshalledObject; } private static ResourceInUseExceptionUnmarshaller _instance = new ResourceInUseExceptionUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static ResourceInUseExceptionUnmarshaller Instance { get { return _instance; } } } }
85
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the appmesh-2019-01-25.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.AppMesh.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AppMesh.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for ResourceMetadata Object /// </summary> public class ResourceMetadataUnmarshaller : IUnmarshaller<ResourceMetadata, XmlUnmarshallerContext>, IUnmarshaller<ResourceMetadata, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> ResourceMetadata IUnmarshaller<ResourceMetadata, XmlUnmarshallerContext>.Unmarshall(XmlUnmarshallerContext context) { throw new NotImplementedException(); } /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public ResourceMetadata Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; ResourceMetadata unmarshalledObject = new ResourceMetadata(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("arn", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Arn = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("createdAt", targetDepth)) { var unmarshaller = DateTimeUnmarshaller.Instance; unmarshalledObject.CreatedAt = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("lastUpdatedAt", targetDepth)) { var unmarshaller = DateTimeUnmarshaller.Instance; unmarshalledObject.LastUpdatedAt = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("meshOwner", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.MeshOwner = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("resourceOwner", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.ResourceOwner = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("uid", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Uid = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("version", targetDepth)) { var unmarshaller = LongUnmarshaller.Instance; unmarshalledObject.Version = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static ResourceMetadataUnmarshaller _instance = new ResourceMetadataUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static ResourceMetadataUnmarshaller Instance { get { return _instance; } } } }
128
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the appmesh-2019-01-25.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.AppMesh.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AppMesh.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for RouteData Object /// </summary> public class RouteDataUnmarshaller : IUnmarshaller<RouteData, XmlUnmarshallerContext>, IUnmarshaller<RouteData, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> RouteData IUnmarshaller<RouteData, XmlUnmarshallerContext>.Unmarshall(XmlUnmarshallerContext context) { throw new NotImplementedException(); } /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public RouteData Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; RouteData unmarshalledObject = new RouteData(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("meshName", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.MeshName = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("metadata", targetDepth)) { var unmarshaller = ResourceMetadataUnmarshaller.Instance; unmarshalledObject.Metadata = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("routeName", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.RouteName = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("spec", targetDepth)) { var unmarshaller = RouteSpecUnmarshaller.Instance; unmarshalledObject.Spec = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("status", targetDepth)) { var unmarshaller = RouteStatusUnmarshaller.Instance; unmarshalledObject.Status = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("virtualRouterName", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.VirtualRouterName = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static RouteDataUnmarshaller _instance = new RouteDataUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static RouteDataUnmarshaller Instance { get { return _instance; } } } }
122