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 RouteRef Object /// </summary> public class RouteRefUnmarshaller : IUnmarshaller<RouteRef, XmlUnmarshallerContext>, IUnmarshaller<RouteRef, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> RouteRef IUnmarshaller<RouteRef, 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 RouteRef Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; RouteRef unmarshalledObject = new RouteRef(); 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("routeName", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.RouteName = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("version", targetDepth)) { var unmarshaller = LongUnmarshaller.Instance; unmarshalledObject.Version = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("virtualRouterName", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.VirtualRouterName = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static RouteRefUnmarshaller _instance = new RouteRefUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static RouteRefUnmarshaller Instance { get { return _instance; } } } }
140
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> /// RouteSpec Marshaller /// </summary> public class RouteSpecMarshaller : IRequestMarshaller<RouteSpec, 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(RouteSpec requestObject, JsonMarshallerContext context) { if(requestObject.IsSetGrpcRoute()) { context.Writer.WritePropertyName("grpcRoute"); context.Writer.WriteObjectStart(); var marshaller = GrpcRouteMarshaller.Instance; marshaller.Marshall(requestObject.GrpcRoute, context); context.Writer.WriteObjectEnd(); } if(requestObject.IsSetHttp2Route()) { context.Writer.WritePropertyName("http2Route"); context.Writer.WriteObjectStart(); var marshaller = HttpRouteMarshaller.Instance; marshaller.Marshall(requestObject.Http2Route, context); context.Writer.WriteObjectEnd(); } if(requestObject.IsSetHttpRoute()) { context.Writer.WritePropertyName("httpRoute"); context.Writer.WriteObjectStart(); var marshaller = HttpRouteMarshaller.Instance; marshaller.Marshall(requestObject.HttpRoute, context); context.Writer.WriteObjectEnd(); } if(requestObject.IsSetPriority()) { context.Writer.WritePropertyName("priority"); context.Writer.Write(requestObject.Priority); } if(requestObject.IsSetTcpRoute()) { context.Writer.WritePropertyName("tcpRoute"); context.Writer.WriteObjectStart(); var marshaller = TcpRouteMarshaller.Instance; marshaller.Marshall(requestObject.TcpRoute, context); context.Writer.WriteObjectEnd(); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static RouteSpecMarshaller Instance = new RouteSpecMarshaller(); } }
106
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 RouteSpec Object /// </summary> public class RouteSpecUnmarshaller : IUnmarshaller<RouteSpec, XmlUnmarshallerContext>, IUnmarshaller<RouteSpec, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> RouteSpec IUnmarshaller<RouteSpec, 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 RouteSpec Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; RouteSpec unmarshalledObject = new RouteSpec(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("grpcRoute", targetDepth)) { var unmarshaller = GrpcRouteUnmarshaller.Instance; unmarshalledObject.GrpcRoute = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("http2Route", targetDepth)) { var unmarshaller = HttpRouteUnmarshaller.Instance; unmarshalledObject.Http2Route = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("httpRoute", targetDepth)) { var unmarshaller = HttpRouteUnmarshaller.Instance; unmarshalledObject.HttpRoute = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("priority", targetDepth)) { var unmarshaller = IntUnmarshaller.Instance; unmarshalledObject.Priority = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("tcpRoute", targetDepth)) { var unmarshaller = TcpRouteUnmarshaller.Instance; unmarshalledObject.TcpRoute = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static RouteSpecUnmarshaller _instance = new RouteSpecUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static RouteSpecUnmarshaller 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 RouteStatus Object /// </summary> public class RouteStatusUnmarshaller : IUnmarshaller<RouteStatus, XmlUnmarshallerContext>, IUnmarshaller<RouteStatus, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> RouteStatus IUnmarshaller<RouteStatus, 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 RouteStatus Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; RouteStatus unmarshalledObject = new RouteStatus(); 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 RouteStatusUnmarshaller _instance = new RouteStatusUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static RouteStatusUnmarshaller 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> /// ServiceDiscovery Marshaller /// </summary> public class ServiceDiscoveryMarshaller : IRequestMarshaller<ServiceDiscovery, 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(ServiceDiscovery requestObject, JsonMarshallerContext context) { if(requestObject.IsSetAwsCloudMap()) { context.Writer.WritePropertyName("awsCloudMap"); context.Writer.WriteObjectStart(); var marshaller = AwsCloudMapServiceDiscoveryMarshaller.Instance; marshaller.Marshall(requestObject.AwsCloudMap, context); context.Writer.WriteObjectEnd(); } if(requestObject.IsSetDns()) { context.Writer.WritePropertyName("dns"); context.Writer.WriteObjectStart(); var marshaller = DnsServiceDiscoveryMarshaller.Instance; marshaller.Marshall(requestObject.Dns, context); context.Writer.WriteObjectEnd(); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static ServiceDiscoveryMarshaller Instance = new ServiceDiscoveryMarshaller(); } }
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 ServiceDiscovery Object /// </summary> public class ServiceDiscoveryUnmarshaller : IUnmarshaller<ServiceDiscovery, XmlUnmarshallerContext>, IUnmarshaller<ServiceDiscovery, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> ServiceDiscovery IUnmarshaller<ServiceDiscovery, 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 ServiceDiscovery Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; ServiceDiscovery unmarshalledObject = new ServiceDiscovery(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("awsCloudMap", targetDepth)) { var unmarshaller = AwsCloudMapServiceDiscoveryUnmarshaller.Instance; unmarshalledObject.AwsCloudMap = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("dns", targetDepth)) { var unmarshaller = DnsServiceDiscoveryUnmarshaller.Instance; unmarshalledObject.Dns = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static ServiceDiscoveryUnmarshaller _instance = new ServiceDiscoveryUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static ServiceDiscoveryUnmarshaller 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 ServiceUnavailableException Object /// </summary> public class ServiceUnavailableExceptionUnmarshaller : IErrorResponseUnmarshaller<ServiceUnavailableException, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public ServiceUnavailableException 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 ServiceUnavailableException Unmarshall(JsonUnmarshallerContext context, Amazon.Runtime.Internal.ErrorResponse errorResponse) { context.Read(); ServiceUnavailableException unmarshalledObject = new ServiceUnavailableException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { } return unmarshalledObject; } private static ServiceUnavailableExceptionUnmarshaller _instance = new ServiceUnavailableExceptionUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static ServiceUnavailableExceptionUnmarshaller 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> /// SubjectAlternativeNameMatchers Marshaller /// </summary> public class SubjectAlternativeNameMatchersMarshaller : IRequestMarshaller<SubjectAlternativeNameMatchers, 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(SubjectAlternativeNameMatchers requestObject, JsonMarshallerContext context) { if(requestObject.IsSetExact()) { context.Writer.WritePropertyName("exact"); context.Writer.WriteArrayStart(); foreach(var requestObjectExactListValue in requestObject.Exact) { context.Writer.Write(requestObjectExactListValue); } context.Writer.WriteArrayEnd(); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static SubjectAlternativeNameMatchersMarshaller Instance = new SubjectAlternativeNameMatchersMarshaller(); } }
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 SubjectAlternativeNameMatchers Object /// </summary> public class SubjectAlternativeNameMatchersUnmarshaller : IUnmarshaller<SubjectAlternativeNameMatchers, XmlUnmarshallerContext>, IUnmarshaller<SubjectAlternativeNameMatchers, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> SubjectAlternativeNameMatchers IUnmarshaller<SubjectAlternativeNameMatchers, 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 SubjectAlternativeNameMatchers Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; SubjectAlternativeNameMatchers unmarshalledObject = new SubjectAlternativeNameMatchers(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("exact", targetDepth)) { var unmarshaller = new ListUnmarshaller<string, StringUnmarshaller>(StringUnmarshaller.Instance); unmarshalledObject.Exact = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static SubjectAlternativeNameMatchersUnmarshaller _instance = new SubjectAlternativeNameMatchersUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static SubjectAlternativeNameMatchersUnmarshaller 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> /// SubjectAlternativeNames Marshaller /// </summary> public class SubjectAlternativeNamesMarshaller : IRequestMarshaller<SubjectAlternativeNames, 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(SubjectAlternativeNames requestObject, JsonMarshallerContext context) { if(requestObject.IsSetMatch()) { context.Writer.WritePropertyName("match"); context.Writer.WriteObjectStart(); var marshaller = SubjectAlternativeNameMatchersMarshaller.Instance; marshaller.Marshall(requestObject.Match, context); context.Writer.WriteObjectEnd(); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static SubjectAlternativeNamesMarshaller Instance = new SubjectAlternativeNamesMarshaller(); } }
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 SubjectAlternativeNames Object /// </summary> public class SubjectAlternativeNamesUnmarshaller : IUnmarshaller<SubjectAlternativeNames, XmlUnmarshallerContext>, IUnmarshaller<SubjectAlternativeNames, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> SubjectAlternativeNames IUnmarshaller<SubjectAlternativeNames, 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 SubjectAlternativeNames Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; SubjectAlternativeNames unmarshalledObject = new SubjectAlternativeNames(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("match", targetDepth)) { var unmarshaller = SubjectAlternativeNameMatchersUnmarshaller.Instance; unmarshalledObject.Match = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static SubjectAlternativeNamesUnmarshaller _instance = new SubjectAlternativeNamesUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static SubjectAlternativeNamesUnmarshaller 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> /// TagRef Marshaller /// </summary> public class TagRefMarshaller : IRequestMarshaller<TagRef, 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(TagRef 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 TagRefMarshaller Instance = new TagRefMarshaller(); } }
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 TagRef Object /// </summary> public class TagRefUnmarshaller : IUnmarshaller<TagRef, XmlUnmarshallerContext>, IUnmarshaller<TagRef, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> TagRef IUnmarshaller<TagRef, 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 TagRef Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; TagRef unmarshalledObject = new TagRef(); 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 TagRefUnmarshaller _instance = new TagRefUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static TagRefUnmarshaller 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> /// TagResource Request Marshaller /// </summary> public class TagResourceRequestMarshaller : IMarshaller<IRequest, TagResourceRequest> , 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((TagResourceRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(TagResourceRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.AppMesh"); request.Headers["Content-Type"] = "application/json"; request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2019-01-25"; request.HttpMethod = "PUT"; if (publicRequest.IsSetResourceArn()) request.Parameters.Add("resourceArn", StringUtils.FromString(publicRequest.ResourceArn)); request.ResourcePath = "/v20190125/tag"; using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) { JsonWriter writer = new JsonWriter(stringWriter); writer.WriteObjectStart(); var context = new JsonMarshallerContext(request, writer); if(publicRequest.IsSetTags()) { context.Writer.WritePropertyName("tags"); context.Writer.WriteArrayStart(); foreach(var publicRequestTagsListValue in publicRequest.Tags) { context.Writer.WriteObjectStart(); var marshaller = TagRefMarshaller.Instance; marshaller.Marshall(publicRequestTagsListValue, context); context.Writer.WriteObjectEnd(); } context.Writer.WriteArrayEnd(); } writer.WriteObjectEnd(); string snippet = stringWriter.ToString(); request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); } request.UseQueryString = true; return request; } private static TagResourceRequestMarshaller _instance = new TagResourceRequestMarshaller(); internal static TagResourceRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static TagResourceRequestMarshaller Instance { get { return _instance; } } } }
115
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 TagResource operation /// </summary> public class TagResourceResponseUnmarshaller : 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) { TagResourceResponse response = new TagResourceResponse(); 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); } if (errorResponse.Code != null && errorResponse.Code.Equals("TooManyTagsException")) { return TooManyTagsExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonAppMeshException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static TagResourceResponseUnmarshaller _instance = new TagResourceResponseUnmarshaller(); internal static TagResourceResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static TagResourceResponseUnmarshaller Instance { get { return _instance; } } } }
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.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> /// TcpRouteAction Marshaller /// </summary> public class TcpRouteActionMarshaller : IRequestMarshaller<TcpRouteAction, 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(TcpRouteAction 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 TcpRouteActionMarshaller Instance = new TcpRouteActionMarshaller(); } }
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 TcpRouteAction Object /// </summary> public class TcpRouteActionUnmarshaller : IUnmarshaller<TcpRouteAction, XmlUnmarshallerContext>, IUnmarshaller<TcpRouteAction, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> TcpRouteAction IUnmarshaller<TcpRouteAction, 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 TcpRouteAction Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; TcpRouteAction unmarshalledObject = new TcpRouteAction(); 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 TcpRouteActionUnmarshaller _instance = new TcpRouteActionUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static TcpRouteActionUnmarshaller 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> /// TcpRoute Marshaller /// </summary> public class TcpRouteMarshaller : IRequestMarshaller<TcpRoute, 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(TcpRoute requestObject, JsonMarshallerContext context) { if(requestObject.IsSetAction()) { context.Writer.WritePropertyName("action"); context.Writer.WriteObjectStart(); var marshaller = TcpRouteActionMarshaller.Instance; marshaller.Marshall(requestObject.Action, context); context.Writer.WriteObjectEnd(); } if(requestObject.IsSetMatch()) { context.Writer.WritePropertyName("match"); context.Writer.WriteObjectStart(); var marshaller = TcpRouteMatchMarshaller.Instance; marshaller.Marshall(requestObject.Match, context); context.Writer.WriteObjectEnd(); } if(requestObject.IsSetTimeout()) { context.Writer.WritePropertyName("timeout"); context.Writer.WriteObjectStart(); var marshaller = TcpTimeoutMarshaller.Instance; marshaller.Marshall(requestObject.Timeout, context); context.Writer.WriteObjectEnd(); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static TcpRouteMarshaller Instance = new TcpRouteMarshaller(); } }
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.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> /// TcpRouteMatch Marshaller /// </summary> public class TcpRouteMatchMarshaller : IRequestMarshaller<TcpRouteMatch, 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(TcpRouteMatch requestObject, JsonMarshallerContext context) { if(requestObject.IsSetPort()) { context.Writer.WritePropertyName("port"); context.Writer.Write(requestObject.Port); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static TcpRouteMatchMarshaller Instance = new TcpRouteMatchMarshaller(); } }
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 TcpRouteMatch Object /// </summary> public class TcpRouteMatchUnmarshaller : IUnmarshaller<TcpRouteMatch, XmlUnmarshallerContext>, IUnmarshaller<TcpRouteMatch, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> TcpRouteMatch IUnmarshaller<TcpRouteMatch, 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 TcpRouteMatch Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; TcpRouteMatch unmarshalledObject = new TcpRouteMatch(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("port", targetDepth)) { var unmarshaller = IntUnmarshaller.Instance; unmarshalledObject.Port = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static TcpRouteMatchUnmarshaller _instance = new TcpRouteMatchUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static TcpRouteMatchUnmarshaller 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 TcpRoute Object /// </summary> public class TcpRouteUnmarshaller : IUnmarshaller<TcpRoute, XmlUnmarshallerContext>, IUnmarshaller<TcpRoute, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> TcpRoute IUnmarshaller<TcpRoute, 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 TcpRoute Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; TcpRoute unmarshalledObject = new TcpRoute(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("action", targetDepth)) { var unmarshaller = TcpRouteActionUnmarshaller.Instance; unmarshalledObject.Action = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("match", targetDepth)) { var unmarshaller = TcpRouteMatchUnmarshaller.Instance; unmarshalledObject.Match = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("timeout", targetDepth)) { var unmarshaller = TcpTimeoutUnmarshaller.Instance; unmarshalledObject.Timeout = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static TcpRouteUnmarshaller _instance = new TcpRouteUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static TcpRouteUnmarshaller 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> /// TcpTimeout Marshaller /// </summary> public class TcpTimeoutMarshaller : IRequestMarshaller<TcpTimeout, 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(TcpTimeout 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(); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static TcpTimeoutMarshaller Instance = new TcpTimeoutMarshaller(); } }
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 TcpTimeout Object /// </summary> public class TcpTimeoutUnmarshaller : IUnmarshaller<TcpTimeout, XmlUnmarshallerContext>, IUnmarshaller<TcpTimeout, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> TcpTimeout IUnmarshaller<TcpTimeout, 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 TcpTimeout Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; TcpTimeout unmarshalledObject = new TcpTimeout(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("idle", targetDepth)) { var unmarshaller = DurationUnmarshaller.Instance; unmarshalledObject.Idle = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static TcpTimeoutUnmarshaller _instance = new TcpTimeoutUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static TcpTimeoutUnmarshaller 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> /// TlsValidationContextAcmTrust Marshaller /// </summary> public class TlsValidationContextAcmTrustMarshaller : IRequestMarshaller<TlsValidationContextAcmTrust, 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(TlsValidationContextAcmTrust requestObject, JsonMarshallerContext context) { if(requestObject.IsSetCertificateAuthorityArns()) { context.Writer.WritePropertyName("certificateAuthorityArns"); context.Writer.WriteArrayStart(); foreach(var requestObjectCertificateAuthorityArnsListValue in requestObject.CertificateAuthorityArns) { context.Writer.Write(requestObjectCertificateAuthorityArnsListValue); } context.Writer.WriteArrayEnd(); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static TlsValidationContextAcmTrustMarshaller Instance = new TlsValidationContextAcmTrustMarshaller(); } }
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 TlsValidationContextAcmTrust Object /// </summary> public class TlsValidationContextAcmTrustUnmarshaller : IUnmarshaller<TlsValidationContextAcmTrust, XmlUnmarshallerContext>, IUnmarshaller<TlsValidationContextAcmTrust, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> TlsValidationContextAcmTrust IUnmarshaller<TlsValidationContextAcmTrust, 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 TlsValidationContextAcmTrust Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; TlsValidationContextAcmTrust unmarshalledObject = new TlsValidationContextAcmTrust(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("certificateAuthorityArns", targetDepth)) { var unmarshaller = new ListUnmarshaller<string, StringUnmarshaller>(StringUnmarshaller.Instance); unmarshalledObject.CertificateAuthorityArns = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static TlsValidationContextAcmTrustUnmarshaller _instance = new TlsValidationContextAcmTrustUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static TlsValidationContextAcmTrustUnmarshaller 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> /// TlsValidationContextFileTrust Marshaller /// </summary> public class TlsValidationContextFileTrustMarshaller : IRequestMarshaller<TlsValidationContextFileTrust, 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(TlsValidationContextFileTrust requestObject, JsonMarshallerContext context) { if(requestObject.IsSetCertificateChain()) { context.Writer.WritePropertyName("certificateChain"); context.Writer.Write(requestObject.CertificateChain); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static TlsValidationContextFileTrustMarshaller Instance = new TlsValidationContextFileTrustMarshaller(); } }
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 TlsValidationContextFileTrust Object /// </summary> public class TlsValidationContextFileTrustUnmarshaller : IUnmarshaller<TlsValidationContextFileTrust, XmlUnmarshallerContext>, IUnmarshaller<TlsValidationContextFileTrust, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> TlsValidationContextFileTrust IUnmarshaller<TlsValidationContextFileTrust, 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 TlsValidationContextFileTrust Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; TlsValidationContextFileTrust unmarshalledObject = new TlsValidationContextFileTrust(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("certificateChain", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.CertificateChain = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static TlsValidationContextFileTrustUnmarshaller _instance = new TlsValidationContextFileTrustUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static TlsValidationContextFileTrustUnmarshaller 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> /// TlsValidationContext Marshaller /// </summary> public class TlsValidationContextMarshaller : IRequestMarshaller<TlsValidationContext, 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(TlsValidationContext 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 = TlsValidationContextTrustMarshaller.Instance; marshaller.Marshall(requestObject.Trust, context); context.Writer.WriteObjectEnd(); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static TlsValidationContextMarshaller Instance = new TlsValidationContextMarshaller(); } }
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> /// TlsValidationContextSdsTrust Marshaller /// </summary> public class TlsValidationContextSdsTrustMarshaller : IRequestMarshaller<TlsValidationContextSdsTrust, 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(TlsValidationContextSdsTrust requestObject, JsonMarshallerContext context) { if(requestObject.IsSetSecretName()) { context.Writer.WritePropertyName("secretName"); context.Writer.Write(requestObject.SecretName); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static TlsValidationContextSdsTrustMarshaller Instance = new TlsValidationContextSdsTrustMarshaller(); } }
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 TlsValidationContextSdsTrust Object /// </summary> public class TlsValidationContextSdsTrustUnmarshaller : IUnmarshaller<TlsValidationContextSdsTrust, XmlUnmarshallerContext>, IUnmarshaller<TlsValidationContextSdsTrust, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> TlsValidationContextSdsTrust IUnmarshaller<TlsValidationContextSdsTrust, 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 TlsValidationContextSdsTrust Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; TlsValidationContextSdsTrust unmarshalledObject = new TlsValidationContextSdsTrust(); 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 TlsValidationContextSdsTrustUnmarshaller _instance = new TlsValidationContextSdsTrustUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static TlsValidationContextSdsTrustUnmarshaller 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> /// TlsValidationContextTrust Marshaller /// </summary> public class TlsValidationContextTrustMarshaller : IRequestMarshaller<TlsValidationContextTrust, 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(TlsValidationContextTrust requestObject, JsonMarshallerContext context) { if(requestObject.IsSetAcm()) { context.Writer.WritePropertyName("acm"); context.Writer.WriteObjectStart(); var marshaller = TlsValidationContextAcmTrustMarshaller.Instance; marshaller.Marshall(requestObject.Acm, context); context.Writer.WriteObjectEnd(); } 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 TlsValidationContextTrustMarshaller Instance = new TlsValidationContextTrustMarshaller(); } }
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 TlsValidationContextTrust Object /// </summary> public class TlsValidationContextTrustUnmarshaller : IUnmarshaller<TlsValidationContextTrust, XmlUnmarshallerContext>, IUnmarshaller<TlsValidationContextTrust, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> TlsValidationContextTrust IUnmarshaller<TlsValidationContextTrust, 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 TlsValidationContextTrust Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; TlsValidationContextTrust unmarshalledObject = new TlsValidationContextTrust(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("acm", targetDepth)) { var unmarshaller = TlsValidationContextAcmTrustUnmarshaller.Instance; unmarshalledObject.Acm = unmarshaller.Unmarshall(context); continue; } 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 TlsValidationContextTrustUnmarshaller _instance = new TlsValidationContextTrustUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static TlsValidationContextTrustUnmarshaller 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 TlsValidationContext Object /// </summary> public class TlsValidationContextUnmarshaller : IUnmarshaller<TlsValidationContext, XmlUnmarshallerContext>, IUnmarshaller<TlsValidationContext, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> TlsValidationContext IUnmarshaller<TlsValidationContext, 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 TlsValidationContext Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; TlsValidationContext unmarshalledObject = new TlsValidationContext(); 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 = TlsValidationContextTrustUnmarshaller.Instance; unmarshalledObject.Trust = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static TlsValidationContextUnmarshaller _instance = new TlsValidationContextUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static TlsValidationContextUnmarshaller 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 TooManyRequestsException Object /// </summary> public class TooManyRequestsExceptionUnmarshaller : IErrorResponseUnmarshaller<TooManyRequestsException, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public TooManyRequestsException 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 TooManyRequestsException Unmarshall(JsonUnmarshallerContext context, Amazon.Runtime.Internal.ErrorResponse errorResponse) { context.Read(); TooManyRequestsException unmarshalledObject = new TooManyRequestsException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { } return unmarshalledObject; } private static TooManyRequestsExceptionUnmarshaller _instance = new TooManyRequestsExceptionUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static TooManyRequestsExceptionUnmarshaller 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 TooManyTagsException Object /// </summary> public class TooManyTagsExceptionUnmarshaller : IErrorResponseUnmarshaller<TooManyTagsException, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public TooManyTagsException 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 TooManyTagsException Unmarshall(JsonUnmarshallerContext context, Amazon.Runtime.Internal.ErrorResponse errorResponse) { context.Read(); TooManyTagsException unmarshalledObject = new TooManyTagsException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { } return unmarshalledObject; } private static TooManyTagsExceptionUnmarshaller _instance = new TooManyTagsExceptionUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static TooManyTagsExceptionUnmarshaller 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> /// UntagResource Request Marshaller /// </summary> public class UntagResourceRequestMarshaller : IMarshaller<IRequest, UntagResourceRequest> , 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((UntagResourceRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(UntagResourceRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.AppMesh"); request.Headers["Content-Type"] = "application/json"; request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2019-01-25"; request.HttpMethod = "PUT"; if (publicRequest.IsSetResourceArn()) request.Parameters.Add("resourceArn", StringUtils.FromString(publicRequest.ResourceArn)); request.ResourcePath = "/v20190125/untag"; using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) { JsonWriter writer = new JsonWriter(stringWriter); writer.WriteObjectStart(); var context = new JsonMarshallerContext(request, writer); if(publicRequest.IsSetTagKeys()) { context.Writer.WritePropertyName("tagKeys"); context.Writer.WriteArrayStart(); foreach(var publicRequestTagKeysListValue in publicRequest.TagKeys) { context.Writer.Write(publicRequestTagKeysListValue); } context.Writer.WriteArrayEnd(); } writer.WriteObjectEnd(); string snippet = stringWriter.ToString(); request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); } request.UseQueryString = true; return request; } private static UntagResourceRequestMarshaller _instance = new UntagResourceRequestMarshaller(); internal static UntagResourceRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static UntagResourceRequestMarshaller 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 UntagResource operation /// </summary> public class UntagResourceResponseUnmarshaller : 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) { UntagResourceResponse response = new UntagResourceResponse(); 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 UntagResourceResponseUnmarshaller _instance = new UntagResourceResponseUnmarshaller(); internal static UntagResourceResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static UntagResourceResponseUnmarshaller Instance { get { return _instance; } } } }
119
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> /// UpdateGatewayRoute Request Marshaller /// </summary> public class UpdateGatewayRouteRequestMarshaller : IMarshaller<IRequest, UpdateGatewayRouteRequest> , 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((UpdateGatewayRouteRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(UpdateGatewayRouteRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.AppMesh"); request.Headers["Content-Type"] = "application/json"; request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2019-01-25"; request.HttpMethod = "PUT"; if (!publicRequest.IsSetGatewayRouteName()) throw new AmazonAppMeshException("Request object does not have required field GatewayRouteName set"); request.AddPathResource("{gatewayRouteName}", StringUtils.FromString(publicRequest.GatewayRouteName)); 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.IsSetMeshOwner()) request.Parameters.Add("meshOwner", StringUtils.FromString(publicRequest.MeshOwner)); request.ResourcePath = "/v20190125/meshes/{meshName}/virtualGateway/{virtualGatewayName}/gatewayRoutes/{gatewayRouteName}"; using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) { JsonWriter writer = new JsonWriter(stringWriter); writer.WriteObjectStart(); var context = new JsonMarshallerContext(request, writer); if(publicRequest.IsSetClientToken()) { context.Writer.WritePropertyName("clientToken"); context.Writer.Write(publicRequest.ClientToken); } else if(!(publicRequest.IsSetClientToken())) { context.Writer.WritePropertyName("clientToken"); context.Writer.Write(Guid.NewGuid().ToString()); } if(publicRequest.IsSetSpec()) { context.Writer.WritePropertyName("spec"); context.Writer.WriteObjectStart(); var marshaller = GatewayRouteSpecMarshaller.Instance; marshaller.Marshall(publicRequest.Spec, context); context.Writer.WriteObjectEnd(); } writer.WriteObjectEnd(); string snippet = stringWriter.ToString(); request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); } request.UseQueryString = true; return request; } private static UpdateGatewayRouteRequestMarshaller _instance = new UpdateGatewayRouteRequestMarshaller(); internal static UpdateGatewayRouteRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static UpdateGatewayRouteRequestMarshaller Instance { get { return _instance; } } } }
130
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 UpdateGatewayRoute operation /// </summary> public class UpdateGatewayRouteResponseUnmarshaller : 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) { UpdateGatewayRouteResponse response = new UpdateGatewayRouteResponse(); var unmarshaller = GatewayRouteDataUnmarshaller.Instance; response.GatewayRoute = unmarshaller.Unmarshall(context); 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("ConflictException")) { return ConflictExceptionUnmarshaller.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("LimitExceededException")) { return LimitExceededExceptionUnmarshaller.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 UpdateGatewayRouteResponseUnmarshaller _instance = new UpdateGatewayRouteResponseUnmarshaller(); internal static UpdateGatewayRouteResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static UpdateGatewayRouteResponseUnmarshaller Instance { get { return _instance; } } } }
129
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> /// UpdateMesh Request Marshaller /// </summary> public class UpdateMeshRequestMarshaller : IMarshaller<IRequest, UpdateMeshRequest> , 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((UpdateMeshRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(UpdateMeshRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.AppMesh"); request.Headers["Content-Type"] = "application/json"; request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2019-01-25"; request.HttpMethod = "PUT"; if (!publicRequest.IsSetMeshName()) throw new AmazonAppMeshException("Request object does not have required field MeshName set"); request.AddPathResource("{meshName}", StringUtils.FromString(publicRequest.MeshName)); request.ResourcePath = "/v20190125/meshes/{meshName}"; using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) { JsonWriter writer = new JsonWriter(stringWriter); writer.WriteObjectStart(); var context = new JsonMarshallerContext(request, writer); if(publicRequest.IsSetClientToken()) { context.Writer.WritePropertyName("clientToken"); context.Writer.Write(publicRequest.ClientToken); } else if(!(publicRequest.IsSetClientToken())) { context.Writer.WritePropertyName("clientToken"); context.Writer.Write(Guid.NewGuid().ToString()); } if(publicRequest.IsSetSpec()) { context.Writer.WritePropertyName("spec"); context.Writer.WriteObjectStart(); var marshaller = MeshSpecMarshaller.Instance; marshaller.Marshall(publicRequest.Spec, context); context.Writer.WriteObjectEnd(); } writer.WriteObjectEnd(); string snippet = stringWriter.ToString(); request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); } return request; } private static UpdateMeshRequestMarshaller _instance = new UpdateMeshRequestMarshaller(); internal static UpdateMeshRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static UpdateMeshRequestMarshaller Instance { get { return _instance; } } } }
120
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 UpdateMesh operation /// </summary> public class UpdateMeshResponseUnmarshaller : 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) { UpdateMeshResponse response = new UpdateMeshResponse(); var unmarshaller = MeshDataUnmarshaller.Instance; response.Mesh = unmarshaller.Unmarshall(context); 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("ConflictException")) { return ConflictExceptionUnmarshaller.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 UpdateMeshResponseUnmarshaller _instance = new UpdateMeshResponseUnmarshaller(); internal static UpdateMeshResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static UpdateMeshResponseUnmarshaller Instance { get { return _instance; } } } }
125
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> /// UpdateRoute Request Marshaller /// </summary> public class UpdateRouteRequestMarshaller : IMarshaller<IRequest, UpdateRouteRequest> , 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((UpdateRouteRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(UpdateRouteRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.AppMesh"); request.Headers["Content-Type"] = "application/json"; request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2019-01-25"; request.HttpMethod = "PUT"; if (!publicRequest.IsSetMeshName()) throw new AmazonAppMeshException("Request object does not have required field MeshName set"); request.AddPathResource("{meshName}", StringUtils.FromString(publicRequest.MeshName)); if (!publicRequest.IsSetRouteName()) throw new AmazonAppMeshException("Request object does not have required field RouteName set"); request.AddPathResource("{routeName}", StringUtils.FromString(publicRequest.RouteName)); if (!publicRequest.IsSetVirtualRouterName()) throw new AmazonAppMeshException("Request object does not have required field VirtualRouterName set"); request.AddPathResource("{virtualRouterName}", StringUtils.FromString(publicRequest.VirtualRouterName)); if (publicRequest.IsSetMeshOwner()) request.Parameters.Add("meshOwner", StringUtils.FromString(publicRequest.MeshOwner)); request.ResourcePath = "/v20190125/meshes/{meshName}/virtualRouter/{virtualRouterName}/routes/{routeName}"; using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) { JsonWriter writer = new JsonWriter(stringWriter); writer.WriteObjectStart(); var context = new JsonMarshallerContext(request, writer); if(publicRequest.IsSetClientToken()) { context.Writer.WritePropertyName("clientToken"); context.Writer.Write(publicRequest.ClientToken); } else if(!(publicRequest.IsSetClientToken())) { context.Writer.WritePropertyName("clientToken"); context.Writer.Write(Guid.NewGuid().ToString()); } if(publicRequest.IsSetSpec()) { context.Writer.WritePropertyName("spec"); context.Writer.WriteObjectStart(); var marshaller = RouteSpecMarshaller.Instance; marshaller.Marshall(publicRequest.Spec, context); context.Writer.WriteObjectEnd(); } writer.WriteObjectEnd(); string snippet = stringWriter.ToString(); request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); } request.UseQueryString = true; return request; } private static UpdateRouteRequestMarshaller _instance = new UpdateRouteRequestMarshaller(); internal static UpdateRouteRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static UpdateRouteRequestMarshaller Instance { get { return _instance; } } } }
130
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 UpdateRoute operation /// </summary> public class UpdateRouteResponseUnmarshaller : 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) { UpdateRouteResponse response = new UpdateRouteResponse(); var unmarshaller = RouteDataUnmarshaller.Instance; response.Route = unmarshaller.Unmarshall(context); 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("ConflictException")) { return ConflictExceptionUnmarshaller.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("LimitExceededException")) { return LimitExceededExceptionUnmarshaller.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 UpdateRouteResponseUnmarshaller _instance = new UpdateRouteResponseUnmarshaller(); internal static UpdateRouteResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static UpdateRouteResponseUnmarshaller Instance { get { return _instance; } } } }
129
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> /// UpdateVirtualGateway Request Marshaller /// </summary> public class UpdateVirtualGatewayRequestMarshaller : IMarshaller<IRequest, UpdateVirtualGatewayRequest> , 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((UpdateVirtualGatewayRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(UpdateVirtualGatewayRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.AppMesh"); request.Headers["Content-Type"] = "application/json"; request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2019-01-25"; request.HttpMethod = "PUT"; 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.IsSetMeshOwner()) request.Parameters.Add("meshOwner", StringUtils.FromString(publicRequest.MeshOwner)); request.ResourcePath = "/v20190125/meshes/{meshName}/virtualGateways/{virtualGatewayName}"; using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) { JsonWriter writer = new JsonWriter(stringWriter); writer.WriteObjectStart(); var context = new JsonMarshallerContext(request, writer); if(publicRequest.IsSetClientToken()) { context.Writer.WritePropertyName("clientToken"); context.Writer.Write(publicRequest.ClientToken); } else if(!(publicRequest.IsSetClientToken())) { context.Writer.WritePropertyName("clientToken"); context.Writer.Write(Guid.NewGuid().ToString()); } if(publicRequest.IsSetSpec()) { context.Writer.WritePropertyName("spec"); context.Writer.WriteObjectStart(); var marshaller = VirtualGatewaySpecMarshaller.Instance; marshaller.Marshall(publicRequest.Spec, context); context.Writer.WriteObjectEnd(); } writer.WriteObjectEnd(); string snippet = stringWriter.ToString(); request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); } request.UseQueryString = true; return request; } private static UpdateVirtualGatewayRequestMarshaller _instance = new UpdateVirtualGatewayRequestMarshaller(); internal static UpdateVirtualGatewayRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static UpdateVirtualGatewayRequestMarshaller Instance { get { return _instance; } } } }
127
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 UpdateVirtualGateway operation /// </summary> public class UpdateVirtualGatewayResponseUnmarshaller : 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) { UpdateVirtualGatewayResponse response = new UpdateVirtualGatewayResponse(); var unmarshaller = VirtualGatewayDataUnmarshaller.Instance; response.VirtualGateway = unmarshaller.Unmarshall(context); 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("ConflictException")) { return ConflictExceptionUnmarshaller.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("LimitExceededException")) { return LimitExceededExceptionUnmarshaller.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 UpdateVirtualGatewayResponseUnmarshaller _instance = new UpdateVirtualGatewayResponseUnmarshaller(); internal static UpdateVirtualGatewayResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static UpdateVirtualGatewayResponseUnmarshaller Instance { get { return _instance; } } } }
129
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> /// UpdateVirtualNode Request Marshaller /// </summary> public class UpdateVirtualNodeRequestMarshaller : IMarshaller<IRequest, UpdateVirtualNodeRequest> , 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((UpdateVirtualNodeRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(UpdateVirtualNodeRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.AppMesh"); request.Headers["Content-Type"] = "application/json"; request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2019-01-25"; request.HttpMethod = "PUT"; if (!publicRequest.IsSetMeshName()) throw new AmazonAppMeshException("Request object does not have required field MeshName set"); request.AddPathResource("{meshName}", StringUtils.FromString(publicRequest.MeshName)); if (!publicRequest.IsSetVirtualNodeName()) throw new AmazonAppMeshException("Request object does not have required field VirtualNodeName set"); request.AddPathResource("{virtualNodeName}", StringUtils.FromString(publicRequest.VirtualNodeName)); if (publicRequest.IsSetMeshOwner()) request.Parameters.Add("meshOwner", StringUtils.FromString(publicRequest.MeshOwner)); request.ResourcePath = "/v20190125/meshes/{meshName}/virtualNodes/{virtualNodeName}"; using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) { JsonWriter writer = new JsonWriter(stringWriter); writer.WriteObjectStart(); var context = new JsonMarshallerContext(request, writer); if(publicRequest.IsSetClientToken()) { context.Writer.WritePropertyName("clientToken"); context.Writer.Write(publicRequest.ClientToken); } else if(!(publicRequest.IsSetClientToken())) { context.Writer.WritePropertyName("clientToken"); context.Writer.Write(Guid.NewGuid().ToString()); } if(publicRequest.IsSetSpec()) { context.Writer.WritePropertyName("spec"); context.Writer.WriteObjectStart(); var marshaller = VirtualNodeSpecMarshaller.Instance; marshaller.Marshall(publicRequest.Spec, context); context.Writer.WriteObjectEnd(); } writer.WriteObjectEnd(); string snippet = stringWriter.ToString(); request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); } request.UseQueryString = true; return request; } private static UpdateVirtualNodeRequestMarshaller _instance = new UpdateVirtualNodeRequestMarshaller(); internal static UpdateVirtualNodeRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static UpdateVirtualNodeRequestMarshaller Instance { get { return _instance; } } } }
127
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 UpdateVirtualNode operation /// </summary> public class UpdateVirtualNodeResponseUnmarshaller : 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) { UpdateVirtualNodeResponse response = new UpdateVirtualNodeResponse(); var unmarshaller = VirtualNodeDataUnmarshaller.Instance; response.VirtualNode = unmarshaller.Unmarshall(context); 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("ConflictException")) { return ConflictExceptionUnmarshaller.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("LimitExceededException")) { return LimitExceededExceptionUnmarshaller.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 UpdateVirtualNodeResponseUnmarshaller _instance = new UpdateVirtualNodeResponseUnmarshaller(); internal static UpdateVirtualNodeResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static UpdateVirtualNodeResponseUnmarshaller Instance { get { return _instance; } } } }
129
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> /// UpdateVirtualRouter Request Marshaller /// </summary> public class UpdateVirtualRouterRequestMarshaller : IMarshaller<IRequest, UpdateVirtualRouterRequest> , 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((UpdateVirtualRouterRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(UpdateVirtualRouterRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.AppMesh"); request.Headers["Content-Type"] = "application/json"; request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2019-01-25"; request.HttpMethod = "PUT"; 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.IsSetMeshOwner()) request.Parameters.Add("meshOwner", StringUtils.FromString(publicRequest.MeshOwner)); request.ResourcePath = "/v20190125/meshes/{meshName}/virtualRouters/{virtualRouterName}"; using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) { JsonWriter writer = new JsonWriter(stringWriter); writer.WriteObjectStart(); var context = new JsonMarshallerContext(request, writer); if(publicRequest.IsSetClientToken()) { context.Writer.WritePropertyName("clientToken"); context.Writer.Write(publicRequest.ClientToken); } else if(!(publicRequest.IsSetClientToken())) { context.Writer.WritePropertyName("clientToken"); context.Writer.Write(Guid.NewGuid().ToString()); } if(publicRequest.IsSetSpec()) { context.Writer.WritePropertyName("spec"); context.Writer.WriteObjectStart(); var marshaller = VirtualRouterSpecMarshaller.Instance; marshaller.Marshall(publicRequest.Spec, context); context.Writer.WriteObjectEnd(); } writer.WriteObjectEnd(); string snippet = stringWriter.ToString(); request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); } request.UseQueryString = true; return request; } private static UpdateVirtualRouterRequestMarshaller _instance = new UpdateVirtualRouterRequestMarshaller(); internal static UpdateVirtualRouterRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static UpdateVirtualRouterRequestMarshaller Instance { get { return _instance; } } } }
127
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 UpdateVirtualRouter operation /// </summary> public class UpdateVirtualRouterResponseUnmarshaller : 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) { UpdateVirtualRouterResponse response = new UpdateVirtualRouterResponse(); var unmarshaller = VirtualRouterDataUnmarshaller.Instance; response.VirtualRouter = unmarshaller.Unmarshall(context); 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("ConflictException")) { return ConflictExceptionUnmarshaller.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("LimitExceededException")) { return LimitExceededExceptionUnmarshaller.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 UpdateVirtualRouterResponseUnmarshaller _instance = new UpdateVirtualRouterResponseUnmarshaller(); internal static UpdateVirtualRouterResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static UpdateVirtualRouterResponseUnmarshaller Instance { get { return _instance; } } } }
129
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> /// UpdateVirtualService Request Marshaller /// </summary> public class UpdateVirtualServiceRequestMarshaller : IMarshaller<IRequest, UpdateVirtualServiceRequest> , 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((UpdateVirtualServiceRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(UpdateVirtualServiceRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.AppMesh"); request.Headers["Content-Type"] = "application/json"; request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2019-01-25"; request.HttpMethod = "PUT"; if (!publicRequest.IsSetMeshName()) throw new AmazonAppMeshException("Request object does not have required field MeshName set"); request.AddPathResource("{meshName}", StringUtils.FromString(publicRequest.MeshName)); if (!publicRequest.IsSetVirtualServiceName()) throw new AmazonAppMeshException("Request object does not have required field VirtualServiceName set"); request.AddPathResource("{virtualServiceName}", StringUtils.FromString(publicRequest.VirtualServiceName)); if (publicRequest.IsSetMeshOwner()) request.Parameters.Add("meshOwner", StringUtils.FromString(publicRequest.MeshOwner)); request.ResourcePath = "/v20190125/meshes/{meshName}/virtualServices/{virtualServiceName}"; using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) { JsonWriter writer = new JsonWriter(stringWriter); writer.WriteObjectStart(); var context = new JsonMarshallerContext(request, writer); if(publicRequest.IsSetClientToken()) { context.Writer.WritePropertyName("clientToken"); context.Writer.Write(publicRequest.ClientToken); } else if(!(publicRequest.IsSetClientToken())) { context.Writer.WritePropertyName("clientToken"); context.Writer.Write(Guid.NewGuid().ToString()); } if(publicRequest.IsSetSpec()) { context.Writer.WritePropertyName("spec"); context.Writer.WriteObjectStart(); var marshaller = VirtualServiceSpecMarshaller.Instance; marshaller.Marshall(publicRequest.Spec, context); context.Writer.WriteObjectEnd(); } writer.WriteObjectEnd(); string snippet = stringWriter.ToString(); request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); } request.UseQueryString = true; return request; } private static UpdateVirtualServiceRequestMarshaller _instance = new UpdateVirtualServiceRequestMarshaller(); internal static UpdateVirtualServiceRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static UpdateVirtualServiceRequestMarshaller Instance { get { return _instance; } } } }
127
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 UpdateVirtualService operation /// </summary> public class UpdateVirtualServiceResponseUnmarshaller : 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) { UpdateVirtualServiceResponse response = new UpdateVirtualServiceResponse(); var unmarshaller = VirtualServiceDataUnmarshaller.Instance; response.VirtualService = unmarshaller.Unmarshall(context); 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("ConflictException")) { return ConflictExceptionUnmarshaller.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("LimitExceededException")) { return LimitExceededExceptionUnmarshaller.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 UpdateVirtualServiceResponseUnmarshaller _instance = new UpdateVirtualServiceResponseUnmarshaller(); internal static UpdateVirtualServiceResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static UpdateVirtualServiceResponseUnmarshaller Instance { get { return _instance; } } } }
129
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> /// VirtualGatewayAccessLog Marshaller /// </summary> public class VirtualGatewayAccessLogMarshaller : IRequestMarshaller<VirtualGatewayAccessLog, 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(VirtualGatewayAccessLog requestObject, JsonMarshallerContext context) { if(requestObject.IsSetFile()) { context.Writer.WritePropertyName("file"); context.Writer.WriteObjectStart(); var marshaller = VirtualGatewayFileAccessLogMarshaller.Instance; marshaller.Marshall(requestObject.File, context); context.Writer.WriteObjectEnd(); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static VirtualGatewayAccessLogMarshaller Instance = new VirtualGatewayAccessLogMarshaller(); } }
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 VirtualGatewayAccessLog Object /// </summary> public class VirtualGatewayAccessLogUnmarshaller : IUnmarshaller<VirtualGatewayAccessLog, XmlUnmarshallerContext>, IUnmarshaller<VirtualGatewayAccessLog, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> VirtualGatewayAccessLog IUnmarshaller<VirtualGatewayAccessLog, 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 VirtualGatewayAccessLog Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; VirtualGatewayAccessLog unmarshalledObject = new VirtualGatewayAccessLog(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("file", targetDepth)) { var unmarshaller = VirtualGatewayFileAccessLogUnmarshaller.Instance; unmarshalledObject.File = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static VirtualGatewayAccessLogUnmarshaller _instance = new VirtualGatewayAccessLogUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static VirtualGatewayAccessLogUnmarshaller 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> /// VirtualGatewayBackendDefaults Marshaller /// </summary> public class VirtualGatewayBackendDefaultsMarshaller : IRequestMarshaller<VirtualGatewayBackendDefaults, 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(VirtualGatewayBackendDefaults requestObject, JsonMarshallerContext context) { if(requestObject.IsSetClientPolicy()) { context.Writer.WritePropertyName("clientPolicy"); context.Writer.WriteObjectStart(); var marshaller = VirtualGatewayClientPolicyMarshaller.Instance; marshaller.Marshall(requestObject.ClientPolicy, context); context.Writer.WriteObjectEnd(); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static VirtualGatewayBackendDefaultsMarshaller Instance = new VirtualGatewayBackendDefaultsMarshaller(); } }
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 VirtualGatewayBackendDefaults Object /// </summary> public class VirtualGatewayBackendDefaultsUnmarshaller : IUnmarshaller<VirtualGatewayBackendDefaults, XmlUnmarshallerContext>, IUnmarshaller<VirtualGatewayBackendDefaults, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> VirtualGatewayBackendDefaults IUnmarshaller<VirtualGatewayBackendDefaults, 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 VirtualGatewayBackendDefaults Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; VirtualGatewayBackendDefaults unmarshalledObject = new VirtualGatewayBackendDefaults(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("clientPolicy", targetDepth)) { var unmarshaller = VirtualGatewayClientPolicyUnmarshaller.Instance; unmarshalledObject.ClientPolicy = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static VirtualGatewayBackendDefaultsUnmarshaller _instance = new VirtualGatewayBackendDefaultsUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static VirtualGatewayBackendDefaultsUnmarshaller 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> /// VirtualGatewayClientPolicy Marshaller /// </summary> public class VirtualGatewayClientPolicyMarshaller : IRequestMarshaller<VirtualGatewayClientPolicy, 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(VirtualGatewayClientPolicy requestObject, JsonMarshallerContext context) { if(requestObject.IsSetTls()) { context.Writer.WritePropertyName("tls"); context.Writer.WriteObjectStart(); var marshaller = VirtualGatewayClientPolicyTlsMarshaller.Instance; marshaller.Marshall(requestObject.Tls, context); context.Writer.WriteObjectEnd(); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static VirtualGatewayClientPolicyMarshaller Instance = new VirtualGatewayClientPolicyMarshaller(); } }
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.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> /// VirtualGatewayClientPolicyTls Marshaller /// </summary> public class VirtualGatewayClientPolicyTlsMarshaller : IRequestMarshaller<VirtualGatewayClientPolicyTls, 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(VirtualGatewayClientPolicyTls requestObject, JsonMarshallerContext context) { if(requestObject.IsSetCertificate()) { context.Writer.WritePropertyName("certificate"); context.Writer.WriteObjectStart(); var marshaller = VirtualGatewayClientTlsCertificateMarshaller.Instance; marshaller.Marshall(requestObject.Certificate, context); context.Writer.WriteObjectEnd(); } if(requestObject.IsSetEnforce()) { context.Writer.WritePropertyName("enforce"); context.Writer.Write(requestObject.Enforce); } if(requestObject.IsSetPorts()) { context.Writer.WritePropertyName("ports"); context.Writer.WriteArrayStart(); foreach(var requestObjectPortsListValue in requestObject.Ports) { context.Writer.Write(requestObjectPortsListValue); } context.Writer.WriteArrayEnd(); } if(requestObject.IsSetValidation()) { context.Writer.WritePropertyName("validation"); context.Writer.WriteObjectStart(); var marshaller = VirtualGatewayTlsValidationContextMarshaller.Instance; marshaller.Marshall(requestObject.Validation, context); context.Writer.WriteObjectEnd(); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static VirtualGatewayClientPolicyTlsMarshaller Instance = new VirtualGatewayClientPolicyTlsMarshaller(); } }
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 VirtualGatewayClientPolicyTls Object /// </summary> public class VirtualGatewayClientPolicyTlsUnmarshaller : IUnmarshaller<VirtualGatewayClientPolicyTls, XmlUnmarshallerContext>, IUnmarshaller<VirtualGatewayClientPolicyTls, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> VirtualGatewayClientPolicyTls IUnmarshaller<VirtualGatewayClientPolicyTls, 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 VirtualGatewayClientPolicyTls Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; VirtualGatewayClientPolicyTls unmarshalledObject = new VirtualGatewayClientPolicyTls(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("certificate", targetDepth)) { var unmarshaller = VirtualGatewayClientTlsCertificateUnmarshaller.Instance; unmarshalledObject.Certificate = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("enforce", targetDepth)) { var unmarshaller = BoolUnmarshaller.Instance; unmarshalledObject.Enforce = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("ports", targetDepth)) { var unmarshaller = new ListUnmarshaller<int, IntUnmarshaller>(IntUnmarshaller.Instance); unmarshalledObject.Ports = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("validation", targetDepth)) { var unmarshaller = VirtualGatewayTlsValidationContextUnmarshaller.Instance; unmarshalledObject.Validation = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static VirtualGatewayClientPolicyTlsUnmarshaller _instance = new VirtualGatewayClientPolicyTlsUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static VirtualGatewayClientPolicyTlsUnmarshaller 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 VirtualGatewayClientPolicy Object /// </summary> public class VirtualGatewayClientPolicyUnmarshaller : IUnmarshaller<VirtualGatewayClientPolicy, XmlUnmarshallerContext>, IUnmarshaller<VirtualGatewayClientPolicy, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> VirtualGatewayClientPolicy IUnmarshaller<VirtualGatewayClientPolicy, 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 VirtualGatewayClientPolicy Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; VirtualGatewayClientPolicy unmarshalledObject = new VirtualGatewayClientPolicy(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("tls", targetDepth)) { var unmarshaller = VirtualGatewayClientPolicyTlsUnmarshaller.Instance; unmarshalledObject.Tls = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static VirtualGatewayClientPolicyUnmarshaller _instance = new VirtualGatewayClientPolicyUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static VirtualGatewayClientPolicyUnmarshaller 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> /// VirtualGatewayClientTlsCertificate Marshaller /// </summary> public class VirtualGatewayClientTlsCertificateMarshaller : IRequestMarshaller<VirtualGatewayClientTlsCertificate, 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(VirtualGatewayClientTlsCertificate requestObject, JsonMarshallerContext context) { if(requestObject.IsSetFile()) { context.Writer.WritePropertyName("file"); context.Writer.WriteObjectStart(); var marshaller = VirtualGatewayListenerTlsFileCertificateMarshaller.Instance; marshaller.Marshall(requestObject.File, context); context.Writer.WriteObjectEnd(); } if(requestObject.IsSetSds()) { context.Writer.WritePropertyName("sds"); context.Writer.WriteObjectStart(); var marshaller = VirtualGatewayListenerTlsSdsCertificateMarshaller.Instance; marshaller.Marshall(requestObject.Sds, context); context.Writer.WriteObjectEnd(); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static VirtualGatewayClientTlsCertificateMarshaller Instance = new VirtualGatewayClientTlsCertificateMarshaller(); } }
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 VirtualGatewayClientTlsCertificate Object /// </summary> public class VirtualGatewayClientTlsCertificateUnmarshaller : IUnmarshaller<VirtualGatewayClientTlsCertificate, XmlUnmarshallerContext>, IUnmarshaller<VirtualGatewayClientTlsCertificate, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> VirtualGatewayClientTlsCertificate IUnmarshaller<VirtualGatewayClientTlsCertificate, 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 VirtualGatewayClientTlsCertificate Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; VirtualGatewayClientTlsCertificate unmarshalledObject = new VirtualGatewayClientTlsCertificate(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("file", targetDepth)) { var unmarshaller = VirtualGatewayListenerTlsFileCertificateUnmarshaller.Instance; unmarshalledObject.File = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("sds", targetDepth)) { var unmarshaller = VirtualGatewayListenerTlsSdsCertificateUnmarshaller.Instance; unmarshalledObject.Sds = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static VirtualGatewayClientTlsCertificateUnmarshaller _instance = new VirtualGatewayClientTlsCertificateUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static VirtualGatewayClientTlsCertificateUnmarshaller 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> /// VirtualGatewayConnectionPool Marshaller /// </summary> public class VirtualGatewayConnectionPoolMarshaller : IRequestMarshaller<VirtualGatewayConnectionPool, 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(VirtualGatewayConnectionPool requestObject, JsonMarshallerContext context) { if(requestObject.IsSetGrpc()) { context.Writer.WritePropertyName("grpc"); context.Writer.WriteObjectStart(); var marshaller = VirtualGatewayGrpcConnectionPoolMarshaller.Instance; marshaller.Marshall(requestObject.Grpc, context); context.Writer.WriteObjectEnd(); } if(requestObject.IsSetHttp()) { context.Writer.WritePropertyName("http"); context.Writer.WriteObjectStart(); var marshaller = VirtualGatewayHttpConnectionPoolMarshaller.Instance; marshaller.Marshall(requestObject.Http, context); context.Writer.WriteObjectEnd(); } if(requestObject.IsSetHttp2()) { context.Writer.WritePropertyName("http2"); context.Writer.WriteObjectStart(); var marshaller = VirtualGatewayHttp2ConnectionPoolMarshaller.Instance; marshaller.Marshall(requestObject.Http2, context); context.Writer.WriteObjectEnd(); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static VirtualGatewayConnectionPoolMarshaller Instance = new VirtualGatewayConnectionPoolMarshaller(); } }
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 VirtualGatewayConnectionPool Object /// </summary> public class VirtualGatewayConnectionPoolUnmarshaller : IUnmarshaller<VirtualGatewayConnectionPool, XmlUnmarshallerContext>, IUnmarshaller<VirtualGatewayConnectionPool, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> VirtualGatewayConnectionPool IUnmarshaller<VirtualGatewayConnectionPool, 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 VirtualGatewayConnectionPool Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; VirtualGatewayConnectionPool unmarshalledObject = new VirtualGatewayConnectionPool(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("grpc", targetDepth)) { var unmarshaller = VirtualGatewayGrpcConnectionPoolUnmarshaller.Instance; unmarshalledObject.Grpc = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("http", targetDepth)) { var unmarshaller = VirtualGatewayHttpConnectionPoolUnmarshaller.Instance; unmarshalledObject.Http = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("http2", targetDepth)) { var unmarshaller = VirtualGatewayHttp2ConnectionPoolUnmarshaller.Instance; unmarshalledObject.Http2 = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static VirtualGatewayConnectionPoolUnmarshaller _instance = new VirtualGatewayConnectionPoolUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static VirtualGatewayConnectionPoolUnmarshaller 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 VirtualGatewayData Object /// </summary> public class VirtualGatewayDataUnmarshaller : IUnmarshaller<VirtualGatewayData, XmlUnmarshallerContext>, IUnmarshaller<VirtualGatewayData, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> VirtualGatewayData IUnmarshaller<VirtualGatewayData, 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 VirtualGatewayData Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; VirtualGatewayData unmarshalledObject = new VirtualGatewayData(); 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 = VirtualGatewaySpecUnmarshaller.Instance; unmarshalledObject.Spec = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("status", targetDepth)) { var unmarshaller = VirtualGatewayStatusUnmarshaller.Instance; unmarshalledObject.Status = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("virtualGatewayName", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.VirtualGatewayName = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static VirtualGatewayDataUnmarshaller _instance = new VirtualGatewayDataUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static VirtualGatewayDataUnmarshaller 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> /// VirtualGatewayFileAccessLog Marshaller /// </summary> public class VirtualGatewayFileAccessLogMarshaller : IRequestMarshaller<VirtualGatewayFileAccessLog, 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(VirtualGatewayFileAccessLog requestObject, JsonMarshallerContext context) { if(requestObject.IsSetFormat()) { context.Writer.WritePropertyName("format"); context.Writer.WriteObjectStart(); var marshaller = LoggingFormatMarshaller.Instance; marshaller.Marshall(requestObject.Format, context); context.Writer.WriteObjectEnd(); } if(requestObject.IsSetPath()) { context.Writer.WritePropertyName("path"); context.Writer.Write(requestObject.Path); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static VirtualGatewayFileAccessLogMarshaller Instance = new VirtualGatewayFileAccessLogMarshaller(); } }
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 VirtualGatewayFileAccessLog Object /// </summary> public class VirtualGatewayFileAccessLogUnmarshaller : IUnmarshaller<VirtualGatewayFileAccessLog, XmlUnmarshallerContext>, IUnmarshaller<VirtualGatewayFileAccessLog, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> VirtualGatewayFileAccessLog IUnmarshaller<VirtualGatewayFileAccessLog, 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 VirtualGatewayFileAccessLog Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; VirtualGatewayFileAccessLog unmarshalledObject = new VirtualGatewayFileAccessLog(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("format", targetDepth)) { var unmarshaller = LoggingFormatUnmarshaller.Instance; unmarshalledObject.Format = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("path", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Path = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static VirtualGatewayFileAccessLogUnmarshaller _instance = new VirtualGatewayFileAccessLogUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static VirtualGatewayFileAccessLogUnmarshaller 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> /// VirtualGatewayGrpcConnectionPool Marshaller /// </summary> public class VirtualGatewayGrpcConnectionPoolMarshaller : IRequestMarshaller<VirtualGatewayGrpcConnectionPool, 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(VirtualGatewayGrpcConnectionPool requestObject, JsonMarshallerContext context) { if(requestObject.IsSetMaxRequests()) { context.Writer.WritePropertyName("maxRequests"); context.Writer.Write(requestObject.MaxRequests); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static VirtualGatewayGrpcConnectionPoolMarshaller Instance = new VirtualGatewayGrpcConnectionPoolMarshaller(); } }
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 VirtualGatewayGrpcConnectionPool Object /// </summary> public class VirtualGatewayGrpcConnectionPoolUnmarshaller : IUnmarshaller<VirtualGatewayGrpcConnectionPool, XmlUnmarshallerContext>, IUnmarshaller<VirtualGatewayGrpcConnectionPool, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> VirtualGatewayGrpcConnectionPool IUnmarshaller<VirtualGatewayGrpcConnectionPool, 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 VirtualGatewayGrpcConnectionPool Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; VirtualGatewayGrpcConnectionPool unmarshalledObject = new VirtualGatewayGrpcConnectionPool(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("maxRequests", targetDepth)) { var unmarshaller = IntUnmarshaller.Instance; unmarshalledObject.MaxRequests = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static VirtualGatewayGrpcConnectionPoolUnmarshaller _instance = new VirtualGatewayGrpcConnectionPoolUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static VirtualGatewayGrpcConnectionPoolUnmarshaller 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> /// VirtualGatewayHealthCheckPolicy Marshaller /// </summary> public class VirtualGatewayHealthCheckPolicyMarshaller : IRequestMarshaller<VirtualGatewayHealthCheckPolicy, 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(VirtualGatewayHealthCheckPolicy 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 VirtualGatewayHealthCheckPolicyMarshaller Instance = new VirtualGatewayHealthCheckPolicyMarshaller(); } }
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 VirtualGatewayHealthCheckPolicy Object /// </summary> public class VirtualGatewayHealthCheckPolicyUnmarshaller : IUnmarshaller<VirtualGatewayHealthCheckPolicy, XmlUnmarshallerContext>, IUnmarshaller<VirtualGatewayHealthCheckPolicy, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> VirtualGatewayHealthCheckPolicy IUnmarshaller<VirtualGatewayHealthCheckPolicy, 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 VirtualGatewayHealthCheckPolicy Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; VirtualGatewayHealthCheckPolicy unmarshalledObject = new VirtualGatewayHealthCheckPolicy(); 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 VirtualGatewayHealthCheckPolicyUnmarshaller _instance = new VirtualGatewayHealthCheckPolicyUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static VirtualGatewayHealthCheckPolicyUnmarshaller 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> /// VirtualGatewayHttp2ConnectionPool Marshaller /// </summary> public class VirtualGatewayHttp2ConnectionPoolMarshaller : IRequestMarshaller<VirtualGatewayHttp2ConnectionPool, 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(VirtualGatewayHttp2ConnectionPool requestObject, JsonMarshallerContext context) { if(requestObject.IsSetMaxRequests()) { context.Writer.WritePropertyName("maxRequests"); context.Writer.Write(requestObject.MaxRequests); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static VirtualGatewayHttp2ConnectionPoolMarshaller Instance = new VirtualGatewayHttp2ConnectionPoolMarshaller(); } }
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 VirtualGatewayHttp2ConnectionPool Object /// </summary> public class VirtualGatewayHttp2ConnectionPoolUnmarshaller : IUnmarshaller<VirtualGatewayHttp2ConnectionPool, XmlUnmarshallerContext>, IUnmarshaller<VirtualGatewayHttp2ConnectionPool, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> VirtualGatewayHttp2ConnectionPool IUnmarshaller<VirtualGatewayHttp2ConnectionPool, 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 VirtualGatewayHttp2ConnectionPool Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; VirtualGatewayHttp2ConnectionPool unmarshalledObject = new VirtualGatewayHttp2ConnectionPool(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("maxRequests", targetDepth)) { var unmarshaller = IntUnmarshaller.Instance; unmarshalledObject.MaxRequests = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static VirtualGatewayHttp2ConnectionPoolUnmarshaller _instance = new VirtualGatewayHttp2ConnectionPoolUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static VirtualGatewayHttp2ConnectionPoolUnmarshaller 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> /// VirtualGatewayHttpConnectionPool Marshaller /// </summary> public class VirtualGatewayHttpConnectionPoolMarshaller : IRequestMarshaller<VirtualGatewayHttpConnectionPool, 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(VirtualGatewayHttpConnectionPool requestObject, JsonMarshallerContext context) { if(requestObject.IsSetMaxConnections()) { context.Writer.WritePropertyName("maxConnections"); context.Writer.Write(requestObject.MaxConnections); } if(requestObject.IsSetMaxPendingRequests()) { context.Writer.WritePropertyName("maxPendingRequests"); context.Writer.Write(requestObject.MaxPendingRequests); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static VirtualGatewayHttpConnectionPoolMarshaller Instance = new VirtualGatewayHttpConnectionPoolMarshaller(); } }
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 VirtualGatewayHttpConnectionPool Object /// </summary> public class VirtualGatewayHttpConnectionPoolUnmarshaller : IUnmarshaller<VirtualGatewayHttpConnectionPool, XmlUnmarshallerContext>, IUnmarshaller<VirtualGatewayHttpConnectionPool, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> VirtualGatewayHttpConnectionPool IUnmarshaller<VirtualGatewayHttpConnectionPool, 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 VirtualGatewayHttpConnectionPool Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; VirtualGatewayHttpConnectionPool unmarshalledObject = new VirtualGatewayHttpConnectionPool(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("maxConnections", targetDepth)) { var unmarshaller = IntUnmarshaller.Instance; unmarshalledObject.MaxConnections = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("maxPendingRequests", targetDepth)) { var unmarshaller = IntUnmarshaller.Instance; unmarshalledObject.MaxPendingRequests = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static VirtualGatewayHttpConnectionPoolUnmarshaller _instance = new VirtualGatewayHttpConnectionPoolUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static VirtualGatewayHttpConnectionPoolUnmarshaller 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> /// VirtualGatewayListener Marshaller /// </summary> public class VirtualGatewayListenerMarshaller : IRequestMarshaller<VirtualGatewayListener, 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(VirtualGatewayListener requestObject, JsonMarshallerContext context) { if(requestObject.IsSetConnectionPool()) { context.Writer.WritePropertyName("connectionPool"); context.Writer.WriteObjectStart(); var marshaller = VirtualGatewayConnectionPoolMarshaller.Instance; marshaller.Marshall(requestObject.ConnectionPool, context); context.Writer.WriteObjectEnd(); } if(requestObject.IsSetHealthCheck()) { context.Writer.WritePropertyName("healthCheck"); context.Writer.WriteObjectStart(); var marshaller = VirtualGatewayHealthCheckPolicyMarshaller.Instance; marshaller.Marshall(requestObject.HealthCheck, context); context.Writer.WriteObjectEnd(); } if(requestObject.IsSetPortMapping()) { context.Writer.WritePropertyName("portMapping"); context.Writer.WriteObjectStart(); var marshaller = VirtualGatewayPortMappingMarshaller.Instance; marshaller.Marshall(requestObject.PortMapping, context); context.Writer.WriteObjectEnd(); } if(requestObject.IsSetTls()) { context.Writer.WritePropertyName("tls"); context.Writer.WriteObjectStart(); var marshaller = VirtualGatewayListenerTlsMarshaller.Instance; marshaller.Marshall(requestObject.Tls, context); context.Writer.WriteObjectEnd(); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static VirtualGatewayListenerMarshaller Instance = new VirtualGatewayListenerMarshaller(); } }
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> /// VirtualGatewayListenerTlsAcmCertificate Marshaller /// </summary> public class VirtualGatewayListenerTlsAcmCertificateMarshaller : IRequestMarshaller<VirtualGatewayListenerTlsAcmCertificate, 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(VirtualGatewayListenerTlsAcmCertificate requestObject, JsonMarshallerContext context) { if(requestObject.IsSetCertificateArn()) { context.Writer.WritePropertyName("certificateArn"); context.Writer.Write(requestObject.CertificateArn); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static VirtualGatewayListenerTlsAcmCertificateMarshaller Instance = new VirtualGatewayListenerTlsAcmCertificateMarshaller(); } }
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 VirtualGatewayListenerTlsAcmCertificate Object /// </summary> public class VirtualGatewayListenerTlsAcmCertificateUnmarshaller : IUnmarshaller<VirtualGatewayListenerTlsAcmCertificate, XmlUnmarshallerContext>, IUnmarshaller<VirtualGatewayListenerTlsAcmCertificate, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> VirtualGatewayListenerTlsAcmCertificate IUnmarshaller<VirtualGatewayListenerTlsAcmCertificate, 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 VirtualGatewayListenerTlsAcmCertificate Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; VirtualGatewayListenerTlsAcmCertificate unmarshalledObject = new VirtualGatewayListenerTlsAcmCertificate(); 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 VirtualGatewayListenerTlsAcmCertificateUnmarshaller _instance = new VirtualGatewayListenerTlsAcmCertificateUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static VirtualGatewayListenerTlsAcmCertificateUnmarshaller 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> /// VirtualGatewayListenerTlsCertificate Marshaller /// </summary> public class VirtualGatewayListenerTlsCertificateMarshaller : IRequestMarshaller<VirtualGatewayListenerTlsCertificate, 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(VirtualGatewayListenerTlsCertificate requestObject, JsonMarshallerContext context) { if(requestObject.IsSetAcm()) { context.Writer.WritePropertyName("acm"); context.Writer.WriteObjectStart(); var marshaller = VirtualGatewayListenerTlsAcmCertificateMarshaller.Instance; marshaller.Marshall(requestObject.Acm, context); context.Writer.WriteObjectEnd(); } if(requestObject.IsSetFile()) { context.Writer.WritePropertyName("file"); context.Writer.WriteObjectStart(); var marshaller = VirtualGatewayListenerTlsFileCertificateMarshaller.Instance; marshaller.Marshall(requestObject.File, context); context.Writer.WriteObjectEnd(); } if(requestObject.IsSetSds()) { context.Writer.WritePropertyName("sds"); context.Writer.WriteObjectStart(); var marshaller = VirtualGatewayListenerTlsSdsCertificateMarshaller.Instance; marshaller.Marshall(requestObject.Sds, context); context.Writer.WriteObjectEnd(); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static VirtualGatewayListenerTlsCertificateMarshaller Instance = new VirtualGatewayListenerTlsCertificateMarshaller(); } }
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 VirtualGatewayListenerTlsCertificate Object /// </summary> public class VirtualGatewayListenerTlsCertificateUnmarshaller : IUnmarshaller<VirtualGatewayListenerTlsCertificate, XmlUnmarshallerContext>, IUnmarshaller<VirtualGatewayListenerTlsCertificate, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> VirtualGatewayListenerTlsCertificate IUnmarshaller<VirtualGatewayListenerTlsCertificate, 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 VirtualGatewayListenerTlsCertificate Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; VirtualGatewayListenerTlsCertificate unmarshalledObject = new VirtualGatewayListenerTlsCertificate(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("acm", targetDepth)) { var unmarshaller = VirtualGatewayListenerTlsAcmCertificateUnmarshaller.Instance; unmarshalledObject.Acm = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("file", targetDepth)) { var unmarshaller = VirtualGatewayListenerTlsFileCertificateUnmarshaller.Instance; unmarshalledObject.File = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("sds", targetDepth)) { var unmarshaller = VirtualGatewayListenerTlsSdsCertificateUnmarshaller.Instance; unmarshalledObject.Sds = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static VirtualGatewayListenerTlsCertificateUnmarshaller _instance = new VirtualGatewayListenerTlsCertificateUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static VirtualGatewayListenerTlsCertificateUnmarshaller 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> /// VirtualGatewayListenerTlsFileCertificate Marshaller /// </summary> public class VirtualGatewayListenerTlsFileCertificateMarshaller : IRequestMarshaller<VirtualGatewayListenerTlsFileCertificate, 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(VirtualGatewayListenerTlsFileCertificate 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 VirtualGatewayListenerTlsFileCertificateMarshaller Instance = new VirtualGatewayListenerTlsFileCertificateMarshaller(); } }
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 VirtualGatewayListenerTlsFileCertificate Object /// </summary> public class VirtualGatewayListenerTlsFileCertificateUnmarshaller : IUnmarshaller<VirtualGatewayListenerTlsFileCertificate, XmlUnmarshallerContext>, IUnmarshaller<VirtualGatewayListenerTlsFileCertificate, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> VirtualGatewayListenerTlsFileCertificate IUnmarshaller<VirtualGatewayListenerTlsFileCertificate, 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 VirtualGatewayListenerTlsFileCertificate Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; VirtualGatewayListenerTlsFileCertificate unmarshalledObject = new VirtualGatewayListenerTlsFileCertificate(); 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 VirtualGatewayListenerTlsFileCertificateUnmarshaller _instance = new VirtualGatewayListenerTlsFileCertificateUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static VirtualGatewayListenerTlsFileCertificateUnmarshaller 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> /// VirtualGatewayListenerTls Marshaller /// </summary> public class VirtualGatewayListenerTlsMarshaller : IRequestMarshaller<VirtualGatewayListenerTls, 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(VirtualGatewayListenerTls requestObject, JsonMarshallerContext context) { if(requestObject.IsSetCertificate()) { context.Writer.WritePropertyName("certificate"); context.Writer.WriteObjectStart(); var marshaller = VirtualGatewayListenerTlsCertificateMarshaller.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 = VirtualGatewayListenerTlsValidationContextMarshaller.Instance; marshaller.Marshall(requestObject.Validation, context); context.Writer.WriteObjectEnd(); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static VirtualGatewayListenerTlsMarshaller Instance = new VirtualGatewayListenerTlsMarshaller(); } }
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> /// VirtualGatewayListenerTlsSdsCertificate Marshaller /// </summary> public class VirtualGatewayListenerTlsSdsCertificateMarshaller : IRequestMarshaller<VirtualGatewayListenerTlsSdsCertificate, 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(VirtualGatewayListenerTlsSdsCertificate requestObject, JsonMarshallerContext context) { if(requestObject.IsSetSecretName()) { context.Writer.WritePropertyName("secretName"); context.Writer.Write(requestObject.SecretName); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static VirtualGatewayListenerTlsSdsCertificateMarshaller Instance = new VirtualGatewayListenerTlsSdsCertificateMarshaller(); } }
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 VirtualGatewayListenerTlsSdsCertificate Object /// </summary> public class VirtualGatewayListenerTlsSdsCertificateUnmarshaller : IUnmarshaller<VirtualGatewayListenerTlsSdsCertificate, XmlUnmarshallerContext>, IUnmarshaller<VirtualGatewayListenerTlsSdsCertificate, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> VirtualGatewayListenerTlsSdsCertificate IUnmarshaller<VirtualGatewayListenerTlsSdsCertificate, 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 VirtualGatewayListenerTlsSdsCertificate Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; VirtualGatewayListenerTlsSdsCertificate unmarshalledObject = new VirtualGatewayListenerTlsSdsCertificate(); 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 VirtualGatewayListenerTlsSdsCertificateUnmarshaller _instance = new VirtualGatewayListenerTlsSdsCertificateUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static VirtualGatewayListenerTlsSdsCertificateUnmarshaller 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 VirtualGatewayListenerTls Object /// </summary> public class VirtualGatewayListenerTlsUnmarshaller : IUnmarshaller<VirtualGatewayListenerTls, XmlUnmarshallerContext>, IUnmarshaller<VirtualGatewayListenerTls, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> VirtualGatewayListenerTls IUnmarshaller<VirtualGatewayListenerTls, 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 VirtualGatewayListenerTls Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; VirtualGatewayListenerTls unmarshalledObject = new VirtualGatewayListenerTls(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("certificate", targetDepth)) { var unmarshaller = VirtualGatewayListenerTlsCertificateUnmarshaller.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 = VirtualGatewayListenerTlsValidationContextUnmarshaller.Instance; unmarshalledObject.Validation = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static VirtualGatewayListenerTlsUnmarshaller _instance = new VirtualGatewayListenerTlsUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static VirtualGatewayListenerTlsUnmarshaller 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> /// VirtualGatewayListenerTlsValidationContext Marshaller /// </summary> public class VirtualGatewayListenerTlsValidationContextMarshaller : IRequestMarshaller<VirtualGatewayListenerTlsValidationContext, 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(VirtualGatewayListenerTlsValidationContext 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 = VirtualGatewayListenerTlsValidationContextTrustMarshaller.Instance; marshaller.Marshall(requestObject.Trust, context); context.Writer.WriteObjectEnd(); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static VirtualGatewayListenerTlsValidationContextMarshaller Instance = new VirtualGatewayListenerTlsValidationContextMarshaller(); } }
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> /// VirtualGatewayListenerTlsValidationContextTrust Marshaller /// </summary> public class VirtualGatewayListenerTlsValidationContextTrustMarshaller : IRequestMarshaller<VirtualGatewayListenerTlsValidationContextTrust, 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(VirtualGatewayListenerTlsValidationContextTrust requestObject, JsonMarshallerContext context) { if(requestObject.IsSetFile()) { context.Writer.WritePropertyName("file"); context.Writer.WriteObjectStart(); var marshaller = VirtualGatewayTlsValidationContextFileTrustMarshaller.Instance; marshaller.Marshall(requestObject.File, context); context.Writer.WriteObjectEnd(); } if(requestObject.IsSetSds()) { context.Writer.WritePropertyName("sds"); context.Writer.WriteObjectStart(); var marshaller = VirtualGatewayTlsValidationContextSdsTrustMarshaller.Instance; marshaller.Marshall(requestObject.Sds, context); context.Writer.WriteObjectEnd(); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static VirtualGatewayListenerTlsValidationContextTrustMarshaller Instance = new VirtualGatewayListenerTlsValidationContextTrustMarshaller(); } }
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 VirtualGatewayListenerTlsValidationContextTrust Object /// </summary> public class VirtualGatewayListenerTlsValidationContextTrustUnmarshaller : IUnmarshaller<VirtualGatewayListenerTlsValidationContextTrust, XmlUnmarshallerContext>, IUnmarshaller<VirtualGatewayListenerTlsValidationContextTrust, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> VirtualGatewayListenerTlsValidationContextTrust IUnmarshaller<VirtualGatewayListenerTlsValidationContextTrust, 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 VirtualGatewayListenerTlsValidationContextTrust Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; VirtualGatewayListenerTlsValidationContextTrust unmarshalledObject = new VirtualGatewayListenerTlsValidationContextTrust(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("file", targetDepth)) { var unmarshaller = VirtualGatewayTlsValidationContextFileTrustUnmarshaller.Instance; unmarshalledObject.File = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("sds", targetDepth)) { var unmarshaller = VirtualGatewayTlsValidationContextSdsTrustUnmarshaller.Instance; unmarshalledObject.Sds = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static VirtualGatewayListenerTlsValidationContextTrustUnmarshaller _instance = new VirtualGatewayListenerTlsValidationContextTrustUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static VirtualGatewayListenerTlsValidationContextTrustUnmarshaller 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 VirtualGatewayListenerTlsValidationContext Object /// </summary> public class VirtualGatewayListenerTlsValidationContextUnmarshaller : IUnmarshaller<VirtualGatewayListenerTlsValidationContext, XmlUnmarshallerContext>, IUnmarshaller<VirtualGatewayListenerTlsValidationContext, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> VirtualGatewayListenerTlsValidationContext IUnmarshaller<VirtualGatewayListenerTlsValidationContext, 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 VirtualGatewayListenerTlsValidationContext Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; VirtualGatewayListenerTlsValidationContext unmarshalledObject = new VirtualGatewayListenerTlsValidationContext(); 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 = VirtualGatewayListenerTlsValidationContextTrustUnmarshaller.Instance; unmarshalledObject.Trust = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static VirtualGatewayListenerTlsValidationContextUnmarshaller _instance = new VirtualGatewayListenerTlsValidationContextUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static VirtualGatewayListenerTlsValidationContextUnmarshaller 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 VirtualGatewayListener Object /// </summary> public class VirtualGatewayListenerUnmarshaller : IUnmarshaller<VirtualGatewayListener, XmlUnmarshallerContext>, IUnmarshaller<VirtualGatewayListener, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> VirtualGatewayListener IUnmarshaller<VirtualGatewayListener, 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 VirtualGatewayListener Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; VirtualGatewayListener unmarshalledObject = new VirtualGatewayListener(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("connectionPool", targetDepth)) { var unmarshaller = VirtualGatewayConnectionPoolUnmarshaller.Instance; unmarshalledObject.ConnectionPool = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("healthCheck", targetDepth)) { var unmarshaller = VirtualGatewayHealthCheckPolicyUnmarshaller.Instance; unmarshalledObject.HealthCheck = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("portMapping", targetDepth)) { var unmarshaller = VirtualGatewayPortMappingUnmarshaller.Instance; unmarshalledObject.PortMapping = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("tls", targetDepth)) { var unmarshaller = VirtualGatewayListenerTlsUnmarshaller.Instance; unmarshalledObject.Tls = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static VirtualGatewayListenerUnmarshaller _instance = new VirtualGatewayListenerUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static VirtualGatewayListenerUnmarshaller 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> /// VirtualGatewayLogging Marshaller /// </summary> public class VirtualGatewayLoggingMarshaller : IRequestMarshaller<VirtualGatewayLogging, 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(VirtualGatewayLogging requestObject, JsonMarshallerContext context) { if(requestObject.IsSetAccessLog()) { context.Writer.WritePropertyName("accessLog"); context.Writer.WriteObjectStart(); var marshaller = VirtualGatewayAccessLogMarshaller.Instance; marshaller.Marshall(requestObject.AccessLog, context); context.Writer.WriteObjectEnd(); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static VirtualGatewayLoggingMarshaller Instance = new VirtualGatewayLoggingMarshaller(); } }
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 VirtualGatewayLogging Object /// </summary> public class VirtualGatewayLoggingUnmarshaller : IUnmarshaller<VirtualGatewayLogging, XmlUnmarshallerContext>, IUnmarshaller<VirtualGatewayLogging, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> VirtualGatewayLogging IUnmarshaller<VirtualGatewayLogging, 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 VirtualGatewayLogging Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; VirtualGatewayLogging unmarshalledObject = new VirtualGatewayLogging(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("accessLog", targetDepth)) { var unmarshaller = VirtualGatewayAccessLogUnmarshaller.Instance; unmarshalledObject.AccessLog = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static VirtualGatewayLoggingUnmarshaller _instance = new VirtualGatewayLoggingUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static VirtualGatewayLoggingUnmarshaller 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> /// VirtualGatewayPortMapping Marshaller /// </summary> public class VirtualGatewayPortMappingMarshaller : IRequestMarshaller<VirtualGatewayPortMapping, 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(VirtualGatewayPortMapping 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 VirtualGatewayPortMappingMarshaller Instance = new VirtualGatewayPortMappingMarshaller(); } }
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 VirtualGatewayPortMapping Object /// </summary> public class VirtualGatewayPortMappingUnmarshaller : IUnmarshaller<VirtualGatewayPortMapping, XmlUnmarshallerContext>, IUnmarshaller<VirtualGatewayPortMapping, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> VirtualGatewayPortMapping IUnmarshaller<VirtualGatewayPortMapping, 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 VirtualGatewayPortMapping Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; VirtualGatewayPortMapping unmarshalledObject = new VirtualGatewayPortMapping(); 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 VirtualGatewayPortMappingUnmarshaller _instance = new VirtualGatewayPortMappingUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static VirtualGatewayPortMappingUnmarshaller 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 VirtualGatewayRef Object /// </summary> public class VirtualGatewayRefUnmarshaller : IUnmarshaller<VirtualGatewayRef, XmlUnmarshallerContext>, IUnmarshaller<VirtualGatewayRef, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> VirtualGatewayRef IUnmarshaller<VirtualGatewayRef, 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 VirtualGatewayRef Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; VirtualGatewayRef unmarshalledObject = new VirtualGatewayRef(); 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; } if (context.TestExpression("virtualGatewayName", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.VirtualGatewayName = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static VirtualGatewayRefUnmarshaller _instance = new VirtualGatewayRefUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static VirtualGatewayRefUnmarshaller Instance { get { return _instance; } } } }
134
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> /// VirtualGatewaySpec Marshaller /// </summary> public class VirtualGatewaySpecMarshaller : IRequestMarshaller<VirtualGatewaySpec, 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(VirtualGatewaySpec requestObject, JsonMarshallerContext context) { if(requestObject.IsSetBackendDefaults()) { context.Writer.WritePropertyName("backendDefaults"); context.Writer.WriteObjectStart(); var marshaller = VirtualGatewayBackendDefaultsMarshaller.Instance; marshaller.Marshall(requestObject.BackendDefaults, context); context.Writer.WriteObjectEnd(); } if(requestObject.IsSetListeners()) { context.Writer.WritePropertyName("listeners"); context.Writer.WriteArrayStart(); foreach(var requestObjectListenersListValue in requestObject.Listeners) { context.Writer.WriteObjectStart(); var marshaller = VirtualGatewayListenerMarshaller.Instance; marshaller.Marshall(requestObjectListenersListValue, context); context.Writer.WriteObjectEnd(); } context.Writer.WriteArrayEnd(); } if(requestObject.IsSetLogging()) { context.Writer.WritePropertyName("logging"); context.Writer.WriteObjectStart(); var marshaller = VirtualGatewayLoggingMarshaller.Instance; marshaller.Marshall(requestObject.Logging, context); context.Writer.WriteObjectEnd(); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static VirtualGatewaySpecMarshaller Instance = new VirtualGatewaySpecMarshaller(); } }
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 VirtualGatewaySpec Object /// </summary> public class VirtualGatewaySpecUnmarshaller : IUnmarshaller<VirtualGatewaySpec, XmlUnmarshallerContext>, IUnmarshaller<VirtualGatewaySpec, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> VirtualGatewaySpec IUnmarshaller<VirtualGatewaySpec, 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 VirtualGatewaySpec Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; VirtualGatewaySpec unmarshalledObject = new VirtualGatewaySpec(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("backendDefaults", targetDepth)) { var unmarshaller = VirtualGatewayBackendDefaultsUnmarshaller.Instance; unmarshalledObject.BackendDefaults = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("listeners", targetDepth)) { var unmarshaller = new ListUnmarshaller<VirtualGatewayListener, VirtualGatewayListenerUnmarshaller>(VirtualGatewayListenerUnmarshaller.Instance); unmarshalledObject.Listeners = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("logging", targetDepth)) { var unmarshaller = VirtualGatewayLoggingUnmarshaller.Instance; unmarshalledObject.Logging = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static VirtualGatewaySpecUnmarshaller _instance = new VirtualGatewaySpecUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static VirtualGatewaySpecUnmarshaller 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 VirtualGatewayStatus Object /// </summary> public class VirtualGatewayStatusUnmarshaller : IUnmarshaller<VirtualGatewayStatus, XmlUnmarshallerContext>, IUnmarshaller<VirtualGatewayStatus, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> VirtualGatewayStatus IUnmarshaller<VirtualGatewayStatus, 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 VirtualGatewayStatus Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; VirtualGatewayStatus unmarshalledObject = new VirtualGatewayStatus(); 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 VirtualGatewayStatusUnmarshaller _instance = new VirtualGatewayStatusUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static VirtualGatewayStatusUnmarshaller 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> /// VirtualGatewayTlsValidationContextAcmTrust Marshaller /// </summary> public class VirtualGatewayTlsValidationContextAcmTrustMarshaller : IRequestMarshaller<VirtualGatewayTlsValidationContextAcmTrust, 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(VirtualGatewayTlsValidationContextAcmTrust requestObject, JsonMarshallerContext context) { if(requestObject.IsSetCertificateAuthorityArns()) { context.Writer.WritePropertyName("certificateAuthorityArns"); context.Writer.WriteArrayStart(); foreach(var requestObjectCertificateAuthorityArnsListValue in requestObject.CertificateAuthorityArns) { context.Writer.Write(requestObjectCertificateAuthorityArnsListValue); } context.Writer.WriteArrayEnd(); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static VirtualGatewayTlsValidationContextAcmTrustMarshaller Instance = new VirtualGatewayTlsValidationContextAcmTrustMarshaller(); } }
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 VirtualGatewayTlsValidationContextAcmTrust Object /// </summary> public class VirtualGatewayTlsValidationContextAcmTrustUnmarshaller : IUnmarshaller<VirtualGatewayTlsValidationContextAcmTrust, XmlUnmarshallerContext>, IUnmarshaller<VirtualGatewayTlsValidationContextAcmTrust, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> VirtualGatewayTlsValidationContextAcmTrust IUnmarshaller<VirtualGatewayTlsValidationContextAcmTrust, 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 VirtualGatewayTlsValidationContextAcmTrust Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; VirtualGatewayTlsValidationContextAcmTrust unmarshalledObject = new VirtualGatewayTlsValidationContextAcmTrust(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("certificateAuthorityArns", targetDepth)) { var unmarshaller = new ListUnmarshaller<string, StringUnmarshaller>(StringUnmarshaller.Instance); unmarshalledObject.CertificateAuthorityArns = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static VirtualGatewayTlsValidationContextAcmTrustUnmarshaller _instance = new VirtualGatewayTlsValidationContextAcmTrustUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static VirtualGatewayTlsValidationContextAcmTrustUnmarshaller Instance { get { return _instance; } } } }
92