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 batch-2016-08-10.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.Batch.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Batch.Model.Internal.MarshallTransformations { /// <summary> /// DescribeComputeEnvironments Request Marshaller /// </summary> public class DescribeComputeEnvironmentsRequestMarshaller : IMarshaller<IRequest, DescribeComputeEnvironmentsRequest> , 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((DescribeComputeEnvironmentsRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(DescribeComputeEnvironmentsRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.Batch"); request.Headers["Content-Type"] = "application/json"; request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2016-08-10"; request.HttpMethod = "POST"; request.ResourcePath = "/v1/describecomputeenvironments"; using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) { JsonWriter writer = new JsonWriter(stringWriter); writer.WriteObjectStart(); var context = new JsonMarshallerContext(request, writer); if(publicRequest.IsSetComputeEnvironments()) { context.Writer.WritePropertyName("computeEnvironments"); context.Writer.WriteArrayStart(); foreach(var publicRequestComputeEnvironmentsListValue in publicRequest.ComputeEnvironments) { context.Writer.Write(publicRequestComputeEnvironmentsListValue); } context.Writer.WriteArrayEnd(); } if(publicRequest.IsSetMaxResults()) { context.Writer.WritePropertyName("maxResults"); context.Writer.Write(publicRequest.MaxResults); } if(publicRequest.IsSetNextToken()) { context.Writer.WritePropertyName("nextToken"); context.Writer.Write(publicRequest.NextToken); } writer.WriteObjectEnd(); string snippet = stringWriter.ToString(); request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); } return request; } private static DescribeComputeEnvironmentsRequestMarshaller _instance = new DescribeComputeEnvironmentsRequestMarshaller(); internal static DescribeComputeEnvironmentsRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static DescribeComputeEnvironmentsRequestMarshaller Instance { get { return _instance; } } } }
118
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 batch-2016-08-10.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.Batch.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Batch.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for DescribeComputeEnvironments operation /// </summary> public class DescribeComputeEnvironmentsResponseUnmarshaller : 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) { DescribeComputeEnvironmentsResponse response = new DescribeComputeEnvironmentsResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("computeEnvironments", targetDepth)) { var unmarshaller = new ListUnmarshaller<ComputeEnvironmentDetail, ComputeEnvironmentDetailUnmarshaller>(ComputeEnvironmentDetailUnmarshaller.Instance); response.ComputeEnvironments = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("nextToken", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.NextToken = unmarshaller.Unmarshall(context); continue; } } return response; } /// <summary> /// Unmarshaller error response to exception. /// </summary> /// <param name="context"></param> /// <param name="innerException"></param> /// <param name="statusCode"></param> /// <returns></returns> public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) { var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context); errorResponse.InnerException = innerException; errorResponse.StatusCode = statusCode; var responseBodyBytes = context.GetResponseBodyBytes(); using (var streamCopy = new MemoryStream(responseBodyBytes)) using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null)) { if (errorResponse.Code != null && errorResponse.Code.Equals("ClientException")) { return ClientExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ServerException")) { return ServerExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonBatchException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static DescribeComputeEnvironmentsResponseUnmarshaller _instance = new DescribeComputeEnvironmentsResponseUnmarshaller(); internal static DescribeComputeEnvironmentsResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static DescribeComputeEnvironmentsResponseUnmarshaller 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 batch-2016-08-10.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.Batch.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Batch.Model.Internal.MarshallTransformations { /// <summary> /// DescribeJobDefinitions Request Marshaller /// </summary> public class DescribeJobDefinitionsRequestMarshaller : IMarshaller<IRequest, DescribeJobDefinitionsRequest> , 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((DescribeJobDefinitionsRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(DescribeJobDefinitionsRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.Batch"); request.Headers["Content-Type"] = "application/json"; request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2016-08-10"; request.HttpMethod = "POST"; request.ResourcePath = "/v1/describejobdefinitions"; using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) { JsonWriter writer = new JsonWriter(stringWriter); writer.WriteObjectStart(); var context = new JsonMarshallerContext(request, writer); if(publicRequest.IsSetJobDefinitionName()) { context.Writer.WritePropertyName("jobDefinitionName"); context.Writer.Write(publicRequest.JobDefinitionName); } if(publicRequest.IsSetJobDefinitions()) { context.Writer.WritePropertyName("jobDefinitions"); context.Writer.WriteArrayStart(); foreach(var publicRequestJobDefinitionsListValue in publicRequest.JobDefinitions) { context.Writer.Write(publicRequestJobDefinitionsListValue); } context.Writer.WriteArrayEnd(); } if(publicRequest.IsSetMaxResults()) { context.Writer.WritePropertyName("maxResults"); context.Writer.Write(publicRequest.MaxResults); } if(publicRequest.IsSetNextToken()) { context.Writer.WritePropertyName("nextToken"); context.Writer.Write(publicRequest.NextToken); } if(publicRequest.IsSetStatus()) { context.Writer.WritePropertyName("status"); context.Writer.Write(publicRequest.Status); } writer.WriteObjectEnd(); string snippet = stringWriter.ToString(); request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); } return request; } private static DescribeJobDefinitionsRequestMarshaller _instance = new DescribeJobDefinitionsRequestMarshaller(); internal static DescribeJobDefinitionsRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static DescribeJobDefinitionsRequestMarshaller 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 batch-2016-08-10.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.Batch.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Batch.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for DescribeJobDefinitions operation /// </summary> public class DescribeJobDefinitionsResponseUnmarshaller : 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) { DescribeJobDefinitionsResponse response = new DescribeJobDefinitionsResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("jobDefinitions", targetDepth)) { var unmarshaller = new ListUnmarshaller<JobDefinition, JobDefinitionUnmarshaller>(JobDefinitionUnmarshaller.Instance); response.JobDefinitions = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("nextToken", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.NextToken = unmarshaller.Unmarshall(context); continue; } } return response; } /// <summary> /// Unmarshaller error response to exception. /// </summary> /// <param name="context"></param> /// <param name="innerException"></param> /// <param name="statusCode"></param> /// <returns></returns> public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) { var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context); errorResponse.InnerException = innerException; errorResponse.StatusCode = statusCode; var responseBodyBytes = context.GetResponseBodyBytes(); using (var streamCopy = new MemoryStream(responseBodyBytes)) using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null)) { if (errorResponse.Code != null && errorResponse.Code.Equals("ClientException")) { return ClientExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ServerException")) { return ServerExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonBatchException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static DescribeJobDefinitionsResponseUnmarshaller _instance = new DescribeJobDefinitionsResponseUnmarshaller(); internal static DescribeJobDefinitionsResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static DescribeJobDefinitionsResponseUnmarshaller 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 batch-2016-08-10.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.Batch.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Batch.Model.Internal.MarshallTransformations { /// <summary> /// DescribeJobQueues Request Marshaller /// </summary> public class DescribeJobQueuesRequestMarshaller : IMarshaller<IRequest, DescribeJobQueuesRequest> , 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((DescribeJobQueuesRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(DescribeJobQueuesRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.Batch"); request.Headers["Content-Type"] = "application/json"; request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2016-08-10"; request.HttpMethod = "POST"; request.ResourcePath = "/v1/describejobqueues"; using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) { JsonWriter writer = new JsonWriter(stringWriter); writer.WriteObjectStart(); var context = new JsonMarshallerContext(request, writer); if(publicRequest.IsSetJobQueues()) { context.Writer.WritePropertyName("jobQueues"); context.Writer.WriteArrayStart(); foreach(var publicRequestJobQueuesListValue in publicRequest.JobQueues) { context.Writer.Write(publicRequestJobQueuesListValue); } context.Writer.WriteArrayEnd(); } if(publicRequest.IsSetMaxResults()) { context.Writer.WritePropertyName("maxResults"); context.Writer.Write(publicRequest.MaxResults); } if(publicRequest.IsSetNextToken()) { context.Writer.WritePropertyName("nextToken"); context.Writer.Write(publicRequest.NextToken); } writer.WriteObjectEnd(); string snippet = stringWriter.ToString(); request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); } return request; } private static DescribeJobQueuesRequestMarshaller _instance = new DescribeJobQueuesRequestMarshaller(); internal static DescribeJobQueuesRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static DescribeJobQueuesRequestMarshaller Instance { get { return _instance; } } } }
118
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 batch-2016-08-10.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.Batch.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Batch.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for DescribeJobQueues operation /// </summary> public class DescribeJobQueuesResponseUnmarshaller : 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) { DescribeJobQueuesResponse response = new DescribeJobQueuesResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("jobQueues", targetDepth)) { var unmarshaller = new ListUnmarshaller<JobQueueDetail, JobQueueDetailUnmarshaller>(JobQueueDetailUnmarshaller.Instance); response.JobQueues = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("nextToken", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.NextToken = unmarshaller.Unmarshall(context); continue; } } return response; } /// <summary> /// Unmarshaller error response to exception. /// </summary> /// <param name="context"></param> /// <param name="innerException"></param> /// <param name="statusCode"></param> /// <returns></returns> public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) { var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context); errorResponse.InnerException = innerException; errorResponse.StatusCode = statusCode; var responseBodyBytes = context.GetResponseBodyBytes(); using (var streamCopy = new MemoryStream(responseBodyBytes)) using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null)) { if (errorResponse.Code != null && errorResponse.Code.Equals("ClientException")) { return ClientExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ServerException")) { return ServerExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonBatchException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static DescribeJobQueuesResponseUnmarshaller _instance = new DescribeJobQueuesResponseUnmarshaller(); internal static DescribeJobQueuesResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static DescribeJobQueuesResponseUnmarshaller 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 batch-2016-08-10.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.Batch.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Batch.Model.Internal.MarshallTransformations { /// <summary> /// DescribeJobs Request Marshaller /// </summary> public class DescribeJobsRequestMarshaller : IMarshaller<IRequest, DescribeJobsRequest> , 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((DescribeJobsRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(DescribeJobsRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.Batch"); request.Headers["Content-Type"] = "application/json"; request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2016-08-10"; request.HttpMethod = "POST"; request.ResourcePath = "/v1/describejobs"; using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) { JsonWriter writer = new JsonWriter(stringWriter); writer.WriteObjectStart(); var context = new JsonMarshallerContext(request, writer); if(publicRequest.IsSetJobs()) { context.Writer.WritePropertyName("jobs"); context.Writer.WriteArrayStart(); foreach(var publicRequestJobsListValue in publicRequest.Jobs) { context.Writer.Write(publicRequestJobsListValue); } context.Writer.WriteArrayEnd(); } writer.WriteObjectEnd(); string snippet = stringWriter.ToString(); request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); } return request; } private static DescribeJobsRequestMarshaller _instance = new DescribeJobsRequestMarshaller(); internal static DescribeJobsRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static DescribeJobsRequestMarshaller Instance { get { return _instance; } } } }
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 batch-2016-08-10.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.Batch.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Batch.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for DescribeJobs operation /// </summary> public class DescribeJobsResponseUnmarshaller : 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) { DescribeJobsResponse response = new DescribeJobsResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("jobs", targetDepth)) { var unmarshaller = new ListUnmarshaller<JobDetail, JobDetailUnmarshaller>(JobDetailUnmarshaller.Instance); response.Jobs = unmarshaller.Unmarshall(context); continue; } } return response; } /// <summary> /// Unmarshaller error response to exception. /// </summary> /// <param name="context"></param> /// <param name="innerException"></param> /// <param name="statusCode"></param> /// <returns></returns> public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) { var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context); errorResponse.InnerException = innerException; errorResponse.StatusCode = statusCode; var responseBodyBytes = context.GetResponseBodyBytes(); using (var streamCopy = new MemoryStream(responseBodyBytes)) using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null)) { if (errorResponse.Code != null && errorResponse.Code.Equals("ClientException")) { return ClientExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ServerException")) { return ServerExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonBatchException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static DescribeJobsResponseUnmarshaller _instance = new DescribeJobsResponseUnmarshaller(); internal static DescribeJobsResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static DescribeJobsResponseUnmarshaller Instance { get { return _instance; } } } }
114
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 batch-2016-08-10.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.Batch.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Batch.Model.Internal.MarshallTransformations { /// <summary> /// DescribeSchedulingPolicies Request Marshaller /// </summary> public class DescribeSchedulingPoliciesRequestMarshaller : IMarshaller<IRequest, DescribeSchedulingPoliciesRequest> , 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((DescribeSchedulingPoliciesRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(DescribeSchedulingPoliciesRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.Batch"); request.Headers["Content-Type"] = "application/json"; request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2016-08-10"; request.HttpMethod = "POST"; request.ResourcePath = "/v1/describeschedulingpolicies"; using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) { JsonWriter writer = new JsonWriter(stringWriter); writer.WriteObjectStart(); var context = new JsonMarshallerContext(request, writer); if(publicRequest.IsSetArns()) { context.Writer.WritePropertyName("arns"); context.Writer.WriteArrayStart(); foreach(var publicRequestArnsListValue in publicRequest.Arns) { context.Writer.Write(publicRequestArnsListValue); } context.Writer.WriteArrayEnd(); } writer.WriteObjectEnd(); string snippet = stringWriter.ToString(); request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); } return request; } private static DescribeSchedulingPoliciesRequestMarshaller _instance = new DescribeSchedulingPoliciesRequestMarshaller(); internal static DescribeSchedulingPoliciesRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static DescribeSchedulingPoliciesRequestMarshaller Instance { get { return _instance; } } } }
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 batch-2016-08-10.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.Batch.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Batch.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for DescribeSchedulingPolicies operation /// </summary> public class DescribeSchedulingPoliciesResponseUnmarshaller : 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) { DescribeSchedulingPoliciesResponse response = new DescribeSchedulingPoliciesResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("schedulingPolicies", targetDepth)) { var unmarshaller = new ListUnmarshaller<SchedulingPolicyDetail, SchedulingPolicyDetailUnmarshaller>(SchedulingPolicyDetailUnmarshaller.Instance); response.SchedulingPolicies = unmarshaller.Unmarshall(context); continue; } } return response; } /// <summary> /// Unmarshaller error response to exception. /// </summary> /// <param name="context"></param> /// <param name="innerException"></param> /// <param name="statusCode"></param> /// <returns></returns> public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) { var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context); errorResponse.InnerException = innerException; errorResponse.StatusCode = statusCode; var responseBodyBytes = context.GetResponseBodyBytes(); using (var streamCopy = new MemoryStream(responseBodyBytes)) using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null)) { if (errorResponse.Code != null && errorResponse.Code.Equals("ClientException")) { return ClientExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ServerException")) { return ServerExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonBatchException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static DescribeSchedulingPoliciesResponseUnmarshaller _instance = new DescribeSchedulingPoliciesResponseUnmarshaller(); internal static DescribeSchedulingPoliciesResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static DescribeSchedulingPoliciesResponseUnmarshaller Instance { get { return _instance; } } } }
114
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 batch-2016-08-10.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.Batch.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Batch.Model.Internal.MarshallTransformations { /// <summary> /// Device Marshaller /// </summary> public class DeviceMarshaller : IRequestMarshaller<Device, 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(Device requestObject, JsonMarshallerContext context) { if(requestObject.IsSetContainerPath()) { context.Writer.WritePropertyName("containerPath"); context.Writer.Write(requestObject.ContainerPath); } if(requestObject.IsSetHostPath()) { context.Writer.WritePropertyName("hostPath"); context.Writer.Write(requestObject.HostPath); } if(requestObject.IsSetPermissions()) { context.Writer.WritePropertyName("permissions"); context.Writer.WriteArrayStart(); foreach(var requestObjectPermissionsListValue in requestObject.Permissions) { context.Writer.Write(requestObjectPermissionsListValue); } context.Writer.WriteArrayEnd(); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static DeviceMarshaller Instance = new DeviceMarshaller(); } }
79
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the batch-2016-08-10.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.Batch.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Batch.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for Device Object /// </summary> public class DeviceUnmarshaller : IUnmarshaller<Device, XmlUnmarshallerContext>, IUnmarshaller<Device, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> Device IUnmarshaller<Device, 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 Device Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; Device unmarshalledObject = new Device(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("containerPath", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.ContainerPath = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("hostPath", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.HostPath = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("permissions", targetDepth)) { var unmarshaller = new ListUnmarshaller<string, StringUnmarshaller>(StringUnmarshaller.Instance); unmarshalledObject.Permissions = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static DeviceUnmarshaller _instance = new DeviceUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static DeviceUnmarshaller 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 batch-2016-08-10.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.Batch.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Batch.Model.Internal.MarshallTransformations { /// <summary> /// Ec2Configuration Marshaller /// </summary> public class Ec2ConfigurationMarshaller : IRequestMarshaller<Ec2Configuration, 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(Ec2Configuration requestObject, JsonMarshallerContext context) { if(requestObject.IsSetImageIdOverride()) { context.Writer.WritePropertyName("imageIdOverride"); context.Writer.Write(requestObject.ImageIdOverride); } if(requestObject.IsSetImageKubernetesVersion()) { context.Writer.WritePropertyName("imageKubernetesVersion"); context.Writer.Write(requestObject.ImageKubernetesVersion); } if(requestObject.IsSetImageType()) { context.Writer.WritePropertyName("imageType"); context.Writer.Write(requestObject.ImageType); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static Ec2ConfigurationMarshaller Instance = new Ec2ConfigurationMarshaller(); } }
74
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 batch-2016-08-10.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.Batch.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Batch.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for Ec2Configuration Object /// </summary> public class Ec2ConfigurationUnmarshaller : IUnmarshaller<Ec2Configuration, XmlUnmarshallerContext>, IUnmarshaller<Ec2Configuration, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> Ec2Configuration IUnmarshaller<Ec2Configuration, 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 Ec2Configuration Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; Ec2Configuration unmarshalledObject = new Ec2Configuration(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("imageIdOverride", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.ImageIdOverride = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("imageKubernetesVersion", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.ImageKubernetesVersion = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("imageType", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.ImageType = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static Ec2ConfigurationUnmarshaller _instance = new Ec2ConfigurationUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static Ec2ConfigurationUnmarshaller 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 batch-2016-08-10.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.Batch.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Batch.Model.Internal.MarshallTransformations { /// <summary> /// EFSAuthorizationConfig Marshaller /// </summary> public class EFSAuthorizationConfigMarshaller : IRequestMarshaller<EFSAuthorizationConfig, 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(EFSAuthorizationConfig requestObject, JsonMarshallerContext context) { if(requestObject.IsSetAccessPointId()) { context.Writer.WritePropertyName("accessPointId"); context.Writer.Write(requestObject.AccessPointId); } if(requestObject.IsSetIam()) { context.Writer.WritePropertyName("iam"); context.Writer.Write(requestObject.Iam); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static EFSAuthorizationConfigMarshaller Instance = new EFSAuthorizationConfigMarshaller(); } }
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 batch-2016-08-10.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.Batch.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Batch.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for EFSAuthorizationConfig Object /// </summary> public class EFSAuthorizationConfigUnmarshaller : IUnmarshaller<EFSAuthorizationConfig, XmlUnmarshallerContext>, IUnmarshaller<EFSAuthorizationConfig, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> EFSAuthorizationConfig IUnmarshaller<EFSAuthorizationConfig, 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 EFSAuthorizationConfig Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; EFSAuthorizationConfig unmarshalledObject = new EFSAuthorizationConfig(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("accessPointId", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.AccessPointId = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("iam", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Iam = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static EFSAuthorizationConfigUnmarshaller _instance = new EFSAuthorizationConfigUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static EFSAuthorizationConfigUnmarshaller 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 batch-2016-08-10.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.Batch.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Batch.Model.Internal.MarshallTransformations { /// <summary> /// EFSVolumeConfiguration Marshaller /// </summary> public class EFSVolumeConfigurationMarshaller : IRequestMarshaller<EFSVolumeConfiguration, 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(EFSVolumeConfiguration requestObject, JsonMarshallerContext context) { if(requestObject.IsSetAuthorizationConfig()) { context.Writer.WritePropertyName("authorizationConfig"); context.Writer.WriteObjectStart(); var marshaller = EFSAuthorizationConfigMarshaller.Instance; marshaller.Marshall(requestObject.AuthorizationConfig, context); context.Writer.WriteObjectEnd(); } if(requestObject.IsSetFileSystemId()) { context.Writer.WritePropertyName("fileSystemId"); context.Writer.Write(requestObject.FileSystemId); } if(requestObject.IsSetRootDirectory()) { context.Writer.WritePropertyName("rootDirectory"); context.Writer.Write(requestObject.RootDirectory); } if(requestObject.IsSetTransitEncryption()) { context.Writer.WritePropertyName("transitEncryption"); context.Writer.Write(requestObject.TransitEncryption); } if(requestObject.IsSetTransitEncryptionPort()) { context.Writer.WritePropertyName("transitEncryptionPort"); context.Writer.Write(requestObject.TransitEncryptionPort); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static EFSVolumeConfigurationMarshaller Instance = new EFSVolumeConfigurationMarshaller(); } }
91
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the batch-2016-08-10.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.Batch.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Batch.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for EFSVolumeConfiguration Object /// </summary> public class EFSVolumeConfigurationUnmarshaller : IUnmarshaller<EFSVolumeConfiguration, XmlUnmarshallerContext>, IUnmarshaller<EFSVolumeConfiguration, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> EFSVolumeConfiguration IUnmarshaller<EFSVolumeConfiguration, 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 EFSVolumeConfiguration Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; EFSVolumeConfiguration unmarshalledObject = new EFSVolumeConfiguration(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("authorizationConfig", targetDepth)) { var unmarshaller = EFSAuthorizationConfigUnmarshaller.Instance; unmarshalledObject.AuthorizationConfig = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("fileSystemId", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.FileSystemId = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("rootDirectory", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.RootDirectory = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("transitEncryption", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.TransitEncryption = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("transitEncryptionPort", targetDepth)) { var unmarshaller = IntUnmarshaller.Instance; unmarshalledObject.TransitEncryptionPort = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static EFSVolumeConfigurationUnmarshaller _instance = new EFSVolumeConfigurationUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static EFSVolumeConfigurationUnmarshaller 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 batch-2016-08-10.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.Batch.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Batch.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for EksAttemptContainerDetail Object /// </summary> public class EksAttemptContainerDetailUnmarshaller : IUnmarshaller<EksAttemptContainerDetail, XmlUnmarshallerContext>, IUnmarshaller<EksAttemptContainerDetail, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> EksAttemptContainerDetail IUnmarshaller<EksAttemptContainerDetail, 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 EksAttemptContainerDetail Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; EksAttemptContainerDetail unmarshalledObject = new EksAttemptContainerDetail(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("exitCode", targetDepth)) { var unmarshaller = IntUnmarshaller.Instance; unmarshalledObject.ExitCode = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("reason", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Reason = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static EksAttemptContainerDetailUnmarshaller _instance = new EksAttemptContainerDetailUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static EksAttemptContainerDetailUnmarshaller 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 batch-2016-08-10.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.Batch.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Batch.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for EksAttemptDetail Object /// </summary> public class EksAttemptDetailUnmarshaller : IUnmarshaller<EksAttemptDetail, XmlUnmarshallerContext>, IUnmarshaller<EksAttemptDetail, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> EksAttemptDetail IUnmarshaller<EksAttemptDetail, 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 EksAttemptDetail Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; EksAttemptDetail unmarshalledObject = new EksAttemptDetail(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("containers", targetDepth)) { var unmarshaller = new ListUnmarshaller<EksAttemptContainerDetail, EksAttemptContainerDetailUnmarshaller>(EksAttemptContainerDetailUnmarshaller.Instance); unmarshalledObject.Containers = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("nodeName", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.NodeName = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("podName", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.PodName = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("startedAt", targetDepth)) { var unmarshaller = LongUnmarshaller.Instance; unmarshalledObject.StartedAt = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("statusReason", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.StatusReason = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("stoppedAt", targetDepth)) { var unmarshaller = LongUnmarshaller.Instance; unmarshalledObject.StoppedAt = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static EksAttemptDetailUnmarshaller _instance = new EksAttemptDetailUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static EksAttemptDetailUnmarshaller Instance { get { return _instance; } } } }
122
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the batch-2016-08-10.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.Batch.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Batch.Model.Internal.MarshallTransformations { /// <summary> /// EksConfiguration Marshaller /// </summary> public class EksConfigurationMarshaller : IRequestMarshaller<EksConfiguration, 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(EksConfiguration requestObject, JsonMarshallerContext context) { if(requestObject.IsSetEksClusterArn()) { context.Writer.WritePropertyName("eksClusterArn"); context.Writer.Write(requestObject.EksClusterArn); } if(requestObject.IsSetKubernetesNamespace()) { context.Writer.WritePropertyName("kubernetesNamespace"); context.Writer.Write(requestObject.KubernetesNamespace); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static EksConfigurationMarshaller Instance = new EksConfigurationMarshaller(); } }
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 batch-2016-08-10.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.Batch.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Batch.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for EksConfiguration Object /// </summary> public class EksConfigurationUnmarshaller : IUnmarshaller<EksConfiguration, XmlUnmarshallerContext>, IUnmarshaller<EksConfiguration, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> EksConfiguration IUnmarshaller<EksConfiguration, 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 EksConfiguration Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; EksConfiguration unmarshalledObject = new EksConfiguration(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("eksClusterArn", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.EksClusterArn = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("kubernetesNamespace", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.KubernetesNamespace = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static EksConfigurationUnmarshaller _instance = new EksConfigurationUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static EksConfigurationUnmarshaller 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 batch-2016-08-10.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.Batch.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Batch.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for EksContainerDetail Object /// </summary> public class EksContainerDetailUnmarshaller : IUnmarshaller<EksContainerDetail, XmlUnmarshallerContext>, IUnmarshaller<EksContainerDetail, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> EksContainerDetail IUnmarshaller<EksContainerDetail, 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 EksContainerDetail Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; EksContainerDetail unmarshalledObject = new EksContainerDetail(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("args", targetDepth)) { var unmarshaller = new ListUnmarshaller<string, StringUnmarshaller>(StringUnmarshaller.Instance); unmarshalledObject.Args = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("command", targetDepth)) { var unmarshaller = new ListUnmarshaller<string, StringUnmarshaller>(StringUnmarshaller.Instance); unmarshalledObject.Command = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("env", targetDepth)) { var unmarshaller = new ListUnmarshaller<EksContainerEnvironmentVariable, EksContainerEnvironmentVariableUnmarshaller>(EksContainerEnvironmentVariableUnmarshaller.Instance); unmarshalledObject.Env = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("exitCode", targetDepth)) { var unmarshaller = IntUnmarshaller.Instance; unmarshalledObject.ExitCode = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("image", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Image = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("imagePullPolicy", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.ImagePullPolicy = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("name", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Name = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("reason", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Reason = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("resources", targetDepth)) { var unmarshaller = EksContainerResourceRequirementsUnmarshaller.Instance; unmarshalledObject.Resources = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("securityContext", targetDepth)) { var unmarshaller = EksContainerSecurityContextUnmarshaller.Instance; unmarshalledObject.SecurityContext = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("volumeMounts", targetDepth)) { var unmarshaller = new ListUnmarshaller<EksContainerVolumeMount, EksContainerVolumeMountUnmarshaller>(EksContainerVolumeMountUnmarshaller.Instance); unmarshalledObject.VolumeMounts = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static EksContainerDetailUnmarshaller _instance = new EksContainerDetailUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static EksContainerDetailUnmarshaller Instance { get { return _instance; } } } }
152
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 batch-2016-08-10.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.Batch.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Batch.Model.Internal.MarshallTransformations { /// <summary> /// EksContainerEnvironmentVariable Marshaller /// </summary> public class EksContainerEnvironmentVariableMarshaller : IRequestMarshaller<EksContainerEnvironmentVariable, 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(EksContainerEnvironmentVariable requestObject, JsonMarshallerContext context) { if(requestObject.IsSetName()) { context.Writer.WritePropertyName("name"); context.Writer.Write(requestObject.Name); } if(requestObject.IsSetValue()) { context.Writer.WritePropertyName("value"); context.Writer.Write(requestObject.Value); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static EksContainerEnvironmentVariableMarshaller Instance = new EksContainerEnvironmentVariableMarshaller(); } }
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 batch-2016-08-10.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.Batch.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Batch.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for EksContainerEnvironmentVariable Object /// </summary> public class EksContainerEnvironmentVariableUnmarshaller : IUnmarshaller<EksContainerEnvironmentVariable, XmlUnmarshallerContext>, IUnmarshaller<EksContainerEnvironmentVariable, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> EksContainerEnvironmentVariable IUnmarshaller<EksContainerEnvironmentVariable, 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 EksContainerEnvironmentVariable Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; EksContainerEnvironmentVariable unmarshalledObject = new EksContainerEnvironmentVariable(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("name", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Name = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("value", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Value = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static EksContainerEnvironmentVariableUnmarshaller _instance = new EksContainerEnvironmentVariableUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static EksContainerEnvironmentVariableUnmarshaller 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 batch-2016-08-10.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.Batch.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Batch.Model.Internal.MarshallTransformations { /// <summary> /// EksContainer Marshaller /// </summary> public class EksContainerMarshaller : IRequestMarshaller<EksContainer, 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(EksContainer requestObject, JsonMarshallerContext context) { if(requestObject.IsSetArgs()) { context.Writer.WritePropertyName("args"); context.Writer.WriteArrayStart(); foreach(var requestObjectArgsListValue in requestObject.Args) { context.Writer.Write(requestObjectArgsListValue); } context.Writer.WriteArrayEnd(); } if(requestObject.IsSetCommand()) { context.Writer.WritePropertyName("command"); context.Writer.WriteArrayStart(); foreach(var requestObjectCommandListValue in requestObject.Command) { context.Writer.Write(requestObjectCommandListValue); } context.Writer.WriteArrayEnd(); } if(requestObject.IsSetEnv()) { context.Writer.WritePropertyName("env"); context.Writer.WriteArrayStart(); foreach(var requestObjectEnvListValue in requestObject.Env) { context.Writer.WriteObjectStart(); var marshaller = EksContainerEnvironmentVariableMarshaller.Instance; marshaller.Marshall(requestObjectEnvListValue, context); context.Writer.WriteObjectEnd(); } context.Writer.WriteArrayEnd(); } if(requestObject.IsSetImage()) { context.Writer.WritePropertyName("image"); context.Writer.Write(requestObject.Image); } if(requestObject.IsSetImagePullPolicy()) { context.Writer.WritePropertyName("imagePullPolicy"); context.Writer.Write(requestObject.ImagePullPolicy); } if(requestObject.IsSetName()) { context.Writer.WritePropertyName("name"); context.Writer.Write(requestObject.Name); } if(requestObject.IsSetResources()) { context.Writer.WritePropertyName("resources"); context.Writer.WriteObjectStart(); var marshaller = EksContainerResourceRequirementsMarshaller.Instance; marshaller.Marshall(requestObject.Resources, context); context.Writer.WriteObjectEnd(); } if(requestObject.IsSetSecurityContext()) { context.Writer.WritePropertyName("securityContext"); context.Writer.WriteObjectStart(); var marshaller = EksContainerSecurityContextMarshaller.Instance; marshaller.Marshall(requestObject.SecurityContext, context); context.Writer.WriteObjectEnd(); } if(requestObject.IsSetVolumeMounts()) { context.Writer.WritePropertyName("volumeMounts"); context.Writer.WriteArrayStart(); foreach(var requestObjectVolumeMountsListValue in requestObject.VolumeMounts) { context.Writer.WriteObjectStart(); var marshaller = EksContainerVolumeMountMarshaller.Instance; marshaller.Marshall(requestObjectVolumeMountsListValue, context); context.Writer.WriteObjectEnd(); } context.Writer.WriteArrayEnd(); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static EksContainerMarshaller Instance = new EksContainerMarshaller(); } }
150
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 batch-2016-08-10.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.Batch.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Batch.Model.Internal.MarshallTransformations { /// <summary> /// EksContainerOverride Marshaller /// </summary> public class EksContainerOverrideMarshaller : IRequestMarshaller<EksContainerOverride, 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(EksContainerOverride requestObject, JsonMarshallerContext context) { if(requestObject.IsSetArgs()) { context.Writer.WritePropertyName("args"); context.Writer.WriteArrayStart(); foreach(var requestObjectArgsListValue in requestObject.Args) { context.Writer.Write(requestObjectArgsListValue); } context.Writer.WriteArrayEnd(); } if(requestObject.IsSetCommand()) { context.Writer.WritePropertyName("command"); context.Writer.WriteArrayStart(); foreach(var requestObjectCommandListValue in requestObject.Command) { context.Writer.Write(requestObjectCommandListValue); } context.Writer.WriteArrayEnd(); } if(requestObject.IsSetEnv()) { context.Writer.WritePropertyName("env"); context.Writer.WriteArrayStart(); foreach(var requestObjectEnvListValue in requestObject.Env) { context.Writer.WriteObjectStart(); var marshaller = EksContainerEnvironmentVariableMarshaller.Instance; marshaller.Marshall(requestObjectEnvListValue, context); context.Writer.WriteObjectEnd(); } context.Writer.WriteArrayEnd(); } if(requestObject.IsSetImage()) { context.Writer.WritePropertyName("image"); context.Writer.Write(requestObject.Image); } if(requestObject.IsSetResources()) { context.Writer.WritePropertyName("resources"); context.Writer.WriteObjectStart(); var marshaller = EksContainerResourceRequirementsMarshaller.Instance; marshaller.Marshall(requestObject.Resources, context); context.Writer.WriteObjectEnd(); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static EksContainerOverrideMarshaller Instance = new EksContainerOverrideMarshaller(); } }
111
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 batch-2016-08-10.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.Batch.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Batch.Model.Internal.MarshallTransformations { /// <summary> /// EksContainerResourceRequirements Marshaller /// </summary> public class EksContainerResourceRequirementsMarshaller : IRequestMarshaller<EksContainerResourceRequirements, 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(EksContainerResourceRequirements requestObject, JsonMarshallerContext context) { if(requestObject.IsSetLimits()) { context.Writer.WritePropertyName("limits"); context.Writer.WriteObjectStart(); foreach (var requestObjectLimitsKvp in requestObject.Limits) { context.Writer.WritePropertyName(requestObjectLimitsKvp.Key); var requestObjectLimitsValue = requestObjectLimitsKvp.Value; context.Writer.Write(requestObjectLimitsValue); } context.Writer.WriteObjectEnd(); } if(requestObject.IsSetRequests()) { context.Writer.WritePropertyName("requests"); context.Writer.WriteObjectStart(); foreach (var requestObjectRequestsKvp in requestObject.Requests) { context.Writer.WritePropertyName(requestObjectRequestsKvp.Key); var requestObjectRequestsValue = requestObjectRequestsKvp.Value; context.Writer.Write(requestObjectRequestsValue); } context.Writer.WriteObjectEnd(); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static EksContainerResourceRequirementsMarshaller Instance = new EksContainerResourceRequirementsMarshaller(); } }
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 batch-2016-08-10.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.Batch.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Batch.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for EksContainerResourceRequirements Object /// </summary> public class EksContainerResourceRequirementsUnmarshaller : IUnmarshaller<EksContainerResourceRequirements, XmlUnmarshallerContext>, IUnmarshaller<EksContainerResourceRequirements, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> EksContainerResourceRequirements IUnmarshaller<EksContainerResourceRequirements, 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 EksContainerResourceRequirements Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; EksContainerResourceRequirements unmarshalledObject = new EksContainerResourceRequirements(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("limits", targetDepth)) { var unmarshaller = new DictionaryUnmarshaller<string, string, StringUnmarshaller, StringUnmarshaller>(StringUnmarshaller.Instance, StringUnmarshaller.Instance); unmarshalledObject.Limits = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("requests", targetDepth)) { var unmarshaller = new DictionaryUnmarshaller<string, string, StringUnmarshaller, StringUnmarshaller>(StringUnmarshaller.Instance, StringUnmarshaller.Instance); unmarshalledObject.Requests = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static EksContainerResourceRequirementsUnmarshaller _instance = new EksContainerResourceRequirementsUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static EksContainerResourceRequirementsUnmarshaller 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 batch-2016-08-10.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.Batch.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Batch.Model.Internal.MarshallTransformations { /// <summary> /// EksContainerSecurityContext Marshaller /// </summary> public class EksContainerSecurityContextMarshaller : IRequestMarshaller<EksContainerSecurityContext, 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(EksContainerSecurityContext requestObject, JsonMarshallerContext context) { if(requestObject.IsSetPrivileged()) { context.Writer.WritePropertyName("privileged"); context.Writer.Write(requestObject.Privileged); } if(requestObject.IsSetReadOnlyRootFilesystem()) { context.Writer.WritePropertyName("readOnlyRootFilesystem"); context.Writer.Write(requestObject.ReadOnlyRootFilesystem); } if(requestObject.IsSetRunAsGroup()) { context.Writer.WritePropertyName("runAsGroup"); context.Writer.Write(requestObject.RunAsGroup); } if(requestObject.IsSetRunAsNonRoot()) { context.Writer.WritePropertyName("runAsNonRoot"); context.Writer.Write(requestObject.RunAsNonRoot); } if(requestObject.IsSetRunAsUser()) { context.Writer.WritePropertyName("runAsUser"); context.Writer.Write(requestObject.RunAsUser); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static EksContainerSecurityContextMarshaller Instance = new EksContainerSecurityContextMarshaller(); } }
86
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 batch-2016-08-10.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.Batch.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Batch.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for EksContainerSecurityContext Object /// </summary> public class EksContainerSecurityContextUnmarshaller : IUnmarshaller<EksContainerSecurityContext, XmlUnmarshallerContext>, IUnmarshaller<EksContainerSecurityContext, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> EksContainerSecurityContext IUnmarshaller<EksContainerSecurityContext, 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 EksContainerSecurityContext Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; EksContainerSecurityContext unmarshalledObject = new EksContainerSecurityContext(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("privileged", targetDepth)) { var unmarshaller = BoolUnmarshaller.Instance; unmarshalledObject.Privileged = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("readOnlyRootFilesystem", targetDepth)) { var unmarshaller = BoolUnmarshaller.Instance; unmarshalledObject.ReadOnlyRootFilesystem = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("runAsGroup", targetDepth)) { var unmarshaller = LongUnmarshaller.Instance; unmarshalledObject.RunAsGroup = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("runAsNonRoot", targetDepth)) { var unmarshaller = BoolUnmarshaller.Instance; unmarshalledObject.RunAsNonRoot = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("runAsUser", targetDepth)) { var unmarshaller = LongUnmarshaller.Instance; unmarshalledObject.RunAsUser = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static EksContainerSecurityContextUnmarshaller _instance = new EksContainerSecurityContextUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static EksContainerSecurityContextUnmarshaller 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 batch-2016-08-10.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.Batch.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Batch.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for EksContainer Object /// </summary> public class EksContainerUnmarshaller : IUnmarshaller<EksContainer, XmlUnmarshallerContext>, IUnmarshaller<EksContainer, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> EksContainer IUnmarshaller<EksContainer, 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 EksContainer Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; EksContainer unmarshalledObject = new EksContainer(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("args", targetDepth)) { var unmarshaller = new ListUnmarshaller<string, StringUnmarshaller>(StringUnmarshaller.Instance); unmarshalledObject.Args = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("command", targetDepth)) { var unmarshaller = new ListUnmarshaller<string, StringUnmarshaller>(StringUnmarshaller.Instance); unmarshalledObject.Command = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("env", targetDepth)) { var unmarshaller = new ListUnmarshaller<EksContainerEnvironmentVariable, EksContainerEnvironmentVariableUnmarshaller>(EksContainerEnvironmentVariableUnmarshaller.Instance); unmarshalledObject.Env = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("image", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Image = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("imagePullPolicy", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.ImagePullPolicy = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("name", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Name = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("resources", targetDepth)) { var unmarshaller = EksContainerResourceRequirementsUnmarshaller.Instance; unmarshalledObject.Resources = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("securityContext", targetDepth)) { var unmarshaller = EksContainerSecurityContextUnmarshaller.Instance; unmarshalledObject.SecurityContext = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("volumeMounts", targetDepth)) { var unmarshaller = new ListUnmarshaller<EksContainerVolumeMount, EksContainerVolumeMountUnmarshaller>(EksContainerVolumeMountUnmarshaller.Instance); unmarshalledObject.VolumeMounts = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static EksContainerUnmarshaller _instance = new EksContainerUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static EksContainerUnmarshaller 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 batch-2016-08-10.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.Batch.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Batch.Model.Internal.MarshallTransformations { /// <summary> /// EksContainerVolumeMount Marshaller /// </summary> public class EksContainerVolumeMountMarshaller : IRequestMarshaller<EksContainerVolumeMount, 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(EksContainerVolumeMount requestObject, JsonMarshallerContext context) { if(requestObject.IsSetMountPath()) { context.Writer.WritePropertyName("mountPath"); context.Writer.Write(requestObject.MountPath); } if(requestObject.IsSetName()) { context.Writer.WritePropertyName("name"); context.Writer.Write(requestObject.Name); } if(requestObject.IsSetReadOnly()) { context.Writer.WritePropertyName("readOnly"); context.Writer.Write(requestObject.ReadOnly); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static EksContainerVolumeMountMarshaller Instance = new EksContainerVolumeMountMarshaller(); } }
74
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 batch-2016-08-10.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.Batch.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Batch.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for EksContainerVolumeMount Object /// </summary> public class EksContainerVolumeMountUnmarshaller : IUnmarshaller<EksContainerVolumeMount, XmlUnmarshallerContext>, IUnmarshaller<EksContainerVolumeMount, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> EksContainerVolumeMount IUnmarshaller<EksContainerVolumeMount, 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 EksContainerVolumeMount Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; EksContainerVolumeMount unmarshalledObject = new EksContainerVolumeMount(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("mountPath", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.MountPath = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("name", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Name = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("readOnly", targetDepth)) { var unmarshaller = BoolUnmarshaller.Instance; unmarshalledObject.ReadOnly = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static EksContainerVolumeMountUnmarshaller _instance = new EksContainerVolumeMountUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static EksContainerVolumeMountUnmarshaller 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 batch-2016-08-10.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.Batch.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Batch.Model.Internal.MarshallTransformations { /// <summary> /// EksEmptyDir Marshaller /// </summary> public class EksEmptyDirMarshaller : IRequestMarshaller<EksEmptyDir, 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(EksEmptyDir requestObject, JsonMarshallerContext context) { if(requestObject.IsSetMedium()) { context.Writer.WritePropertyName("medium"); context.Writer.Write(requestObject.Medium); } if(requestObject.IsSetSizeLimit()) { context.Writer.WritePropertyName("sizeLimit"); context.Writer.Write(requestObject.SizeLimit); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static EksEmptyDirMarshaller Instance = new EksEmptyDirMarshaller(); } }
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 batch-2016-08-10.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.Batch.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Batch.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for EksEmptyDir Object /// </summary> public class EksEmptyDirUnmarshaller : IUnmarshaller<EksEmptyDir, XmlUnmarshallerContext>, IUnmarshaller<EksEmptyDir, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> EksEmptyDir IUnmarshaller<EksEmptyDir, 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 EksEmptyDir Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; EksEmptyDir unmarshalledObject = new EksEmptyDir(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("medium", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Medium = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("sizeLimit", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.SizeLimit = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static EksEmptyDirUnmarshaller _instance = new EksEmptyDirUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static EksEmptyDirUnmarshaller 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 batch-2016-08-10.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.Batch.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Batch.Model.Internal.MarshallTransformations { /// <summary> /// EksHostPath Marshaller /// </summary> public class EksHostPathMarshaller : IRequestMarshaller<EksHostPath, 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(EksHostPath requestObject, JsonMarshallerContext context) { if(requestObject.IsSetPath()) { context.Writer.WritePropertyName("path"); context.Writer.Write(requestObject.Path); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static EksHostPathMarshaller Instance = new EksHostPathMarshaller(); } }
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 batch-2016-08-10.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.Batch.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Batch.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for EksHostPath Object /// </summary> public class EksHostPathUnmarshaller : IUnmarshaller<EksHostPath, XmlUnmarshallerContext>, IUnmarshaller<EksHostPath, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> EksHostPath IUnmarshaller<EksHostPath, 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 EksHostPath Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; EksHostPath unmarshalledObject = new EksHostPath(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("path", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Path = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static EksHostPathUnmarshaller _instance = new EksHostPathUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static EksHostPathUnmarshaller 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 batch-2016-08-10.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.Batch.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Batch.Model.Internal.MarshallTransformations { /// <summary> /// EksMetadata Marshaller /// </summary> public class EksMetadataMarshaller : IRequestMarshaller<EksMetadata, 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(EksMetadata requestObject, JsonMarshallerContext context) { if(requestObject.IsSetLabels()) { context.Writer.WritePropertyName("labels"); context.Writer.WriteObjectStart(); foreach (var requestObjectLabelsKvp in requestObject.Labels) { context.Writer.WritePropertyName(requestObjectLabelsKvp.Key); var requestObjectLabelsValue = requestObjectLabelsKvp.Value; context.Writer.Write(requestObjectLabelsValue); } context.Writer.WriteObjectEnd(); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static EksMetadataMarshaller Instance = new EksMetadataMarshaller(); } }
70
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 batch-2016-08-10.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.Batch.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Batch.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for EksMetadata Object /// </summary> public class EksMetadataUnmarshaller : IUnmarshaller<EksMetadata, XmlUnmarshallerContext>, IUnmarshaller<EksMetadata, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> EksMetadata IUnmarshaller<EksMetadata, 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 EksMetadata Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; EksMetadata unmarshalledObject = new EksMetadata(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("labels", targetDepth)) { var unmarshaller = new DictionaryUnmarshaller<string, string, StringUnmarshaller, StringUnmarshaller>(StringUnmarshaller.Instance, StringUnmarshaller.Instance); unmarshalledObject.Labels = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static EksMetadataUnmarshaller _instance = new EksMetadataUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static EksMetadataUnmarshaller 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 batch-2016-08-10.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.Batch.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Batch.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for EksPodPropertiesDetail Object /// </summary> public class EksPodPropertiesDetailUnmarshaller : IUnmarshaller<EksPodPropertiesDetail, XmlUnmarshallerContext>, IUnmarshaller<EksPodPropertiesDetail, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> EksPodPropertiesDetail IUnmarshaller<EksPodPropertiesDetail, 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 EksPodPropertiesDetail Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; EksPodPropertiesDetail unmarshalledObject = new EksPodPropertiesDetail(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("containers", targetDepth)) { var unmarshaller = new ListUnmarshaller<EksContainerDetail, EksContainerDetailUnmarshaller>(EksContainerDetailUnmarshaller.Instance); unmarshalledObject.Containers = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("dnsPolicy", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.DnsPolicy = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("hostNetwork", targetDepth)) { var unmarshaller = BoolUnmarshaller.Instance; unmarshalledObject.HostNetwork = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("metadata", targetDepth)) { var unmarshaller = EksMetadataUnmarshaller.Instance; unmarshalledObject.Metadata = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("nodeName", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.NodeName = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("podName", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.PodName = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("serviceAccountName", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.ServiceAccountName = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("volumes", targetDepth)) { var unmarshaller = new ListUnmarshaller<EksVolume, EksVolumeUnmarshaller>(EksVolumeUnmarshaller.Instance); unmarshalledObject.Volumes = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static EksPodPropertiesDetailUnmarshaller _instance = new EksPodPropertiesDetailUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static EksPodPropertiesDetailUnmarshaller 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 batch-2016-08-10.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.Batch.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Batch.Model.Internal.MarshallTransformations { /// <summary> /// EksPodProperties Marshaller /// </summary> public class EksPodPropertiesMarshaller : IRequestMarshaller<EksPodProperties, 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(EksPodProperties requestObject, JsonMarshallerContext context) { if(requestObject.IsSetContainers()) { context.Writer.WritePropertyName("containers"); context.Writer.WriteArrayStart(); foreach(var requestObjectContainersListValue in requestObject.Containers) { context.Writer.WriteObjectStart(); var marshaller = EksContainerMarshaller.Instance; marshaller.Marshall(requestObjectContainersListValue, context); context.Writer.WriteObjectEnd(); } context.Writer.WriteArrayEnd(); } if(requestObject.IsSetDnsPolicy()) { context.Writer.WritePropertyName("dnsPolicy"); context.Writer.Write(requestObject.DnsPolicy); } if(requestObject.IsSetHostNetwork()) { context.Writer.WritePropertyName("hostNetwork"); context.Writer.Write(requestObject.HostNetwork); } if(requestObject.IsSetMetadata()) { context.Writer.WritePropertyName("metadata"); context.Writer.WriteObjectStart(); var marshaller = EksMetadataMarshaller.Instance; marshaller.Marshall(requestObject.Metadata, context); context.Writer.WriteObjectEnd(); } if(requestObject.IsSetServiceAccountName()) { context.Writer.WritePropertyName("serviceAccountName"); context.Writer.Write(requestObject.ServiceAccountName); } if(requestObject.IsSetVolumes()) { context.Writer.WritePropertyName("volumes"); context.Writer.WriteArrayStart(); foreach(var requestObjectVolumesListValue in requestObject.Volumes) { context.Writer.WriteObjectStart(); var marshaller = EksVolumeMarshaller.Instance; marshaller.Marshall(requestObjectVolumesListValue, context); context.Writer.WriteObjectEnd(); } context.Writer.WriteArrayEnd(); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static EksPodPropertiesMarshaller Instance = new EksPodPropertiesMarshaller(); } }
117
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 batch-2016-08-10.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.Batch.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Batch.Model.Internal.MarshallTransformations { /// <summary> /// EksPodPropertiesOverride Marshaller /// </summary> public class EksPodPropertiesOverrideMarshaller : IRequestMarshaller<EksPodPropertiesOverride, 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(EksPodPropertiesOverride requestObject, JsonMarshallerContext context) { if(requestObject.IsSetContainers()) { context.Writer.WritePropertyName("containers"); context.Writer.WriteArrayStart(); foreach(var requestObjectContainersListValue in requestObject.Containers) { context.Writer.WriteObjectStart(); var marshaller = EksContainerOverrideMarshaller.Instance; marshaller.Marshall(requestObjectContainersListValue, context); context.Writer.WriteObjectEnd(); } context.Writer.WriteArrayEnd(); } if(requestObject.IsSetMetadata()) { context.Writer.WritePropertyName("metadata"); context.Writer.WriteObjectStart(); var marshaller = EksMetadataMarshaller.Instance; marshaller.Marshall(requestObject.Metadata, context); context.Writer.WriteObjectEnd(); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static EksPodPropertiesOverrideMarshaller Instance = new EksPodPropertiesOverrideMarshaller(); } }
83
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 batch-2016-08-10.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.Batch.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Batch.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for EksPodProperties Object /// </summary> public class EksPodPropertiesUnmarshaller : IUnmarshaller<EksPodProperties, XmlUnmarshallerContext>, IUnmarshaller<EksPodProperties, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> EksPodProperties IUnmarshaller<EksPodProperties, 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 EksPodProperties Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; EksPodProperties unmarshalledObject = new EksPodProperties(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("containers", targetDepth)) { var unmarshaller = new ListUnmarshaller<EksContainer, EksContainerUnmarshaller>(EksContainerUnmarshaller.Instance); unmarshalledObject.Containers = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("dnsPolicy", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.DnsPolicy = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("hostNetwork", targetDepth)) { var unmarshaller = BoolUnmarshaller.Instance; unmarshalledObject.HostNetwork = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("metadata", targetDepth)) { var unmarshaller = EksMetadataUnmarshaller.Instance; unmarshalledObject.Metadata = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("serviceAccountName", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.ServiceAccountName = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("volumes", targetDepth)) { var unmarshaller = new ListUnmarshaller<EksVolume, EksVolumeUnmarshaller>(EksVolumeUnmarshaller.Instance); unmarshalledObject.Volumes = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static EksPodPropertiesUnmarshaller _instance = new EksPodPropertiesUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static EksPodPropertiesUnmarshaller Instance { get { return _instance; } } } }
122
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the batch-2016-08-10.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.Batch.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Batch.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for EksPropertiesDetail Object /// </summary> public class EksPropertiesDetailUnmarshaller : IUnmarshaller<EksPropertiesDetail, XmlUnmarshallerContext>, IUnmarshaller<EksPropertiesDetail, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> EksPropertiesDetail IUnmarshaller<EksPropertiesDetail, 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 EksPropertiesDetail Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; EksPropertiesDetail unmarshalledObject = new EksPropertiesDetail(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("podProperties", targetDepth)) { var unmarshaller = EksPodPropertiesDetailUnmarshaller.Instance; unmarshalledObject.PodProperties = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static EksPropertiesDetailUnmarshaller _instance = new EksPropertiesDetailUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static EksPropertiesDetailUnmarshaller 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 batch-2016-08-10.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.Batch.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Batch.Model.Internal.MarshallTransformations { /// <summary> /// EksProperties Marshaller /// </summary> public class EksPropertiesMarshaller : IRequestMarshaller<EksProperties, 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(EksProperties requestObject, JsonMarshallerContext context) { if(requestObject.IsSetPodProperties()) { context.Writer.WritePropertyName("podProperties"); context.Writer.WriteObjectStart(); var marshaller = EksPodPropertiesMarshaller.Instance; marshaller.Marshall(requestObject.PodProperties, context); context.Writer.WriteObjectEnd(); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static EksPropertiesMarshaller Instance = new EksPropertiesMarshaller(); } }
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 batch-2016-08-10.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.Batch.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Batch.Model.Internal.MarshallTransformations { /// <summary> /// EksPropertiesOverride Marshaller /// </summary> public class EksPropertiesOverrideMarshaller : IRequestMarshaller<EksPropertiesOverride, 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(EksPropertiesOverride requestObject, JsonMarshallerContext context) { if(requestObject.IsSetPodProperties()) { context.Writer.WritePropertyName("podProperties"); context.Writer.WriteObjectStart(); var marshaller = EksPodPropertiesOverrideMarshaller.Instance; marshaller.Marshall(requestObject.PodProperties, context); context.Writer.WriteObjectEnd(); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static EksPropertiesOverrideMarshaller Instance = new EksPropertiesOverrideMarshaller(); } }
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 batch-2016-08-10.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.Batch.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Batch.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for EksProperties Object /// </summary> public class EksPropertiesUnmarshaller : IUnmarshaller<EksProperties, XmlUnmarshallerContext>, IUnmarshaller<EksProperties, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> EksProperties IUnmarshaller<EksProperties, 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 EksProperties Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; EksProperties unmarshalledObject = new EksProperties(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("podProperties", targetDepth)) { var unmarshaller = EksPodPropertiesUnmarshaller.Instance; unmarshalledObject.PodProperties = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static EksPropertiesUnmarshaller _instance = new EksPropertiesUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static EksPropertiesUnmarshaller 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 batch-2016-08-10.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.Batch.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Batch.Model.Internal.MarshallTransformations { /// <summary> /// EksSecret Marshaller /// </summary> public class EksSecretMarshaller : IRequestMarshaller<EksSecret, 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(EksSecret requestObject, JsonMarshallerContext context) { if(requestObject.IsSetOptional()) { context.Writer.WritePropertyName("optional"); context.Writer.Write(requestObject.Optional); } if(requestObject.IsSetSecretName()) { context.Writer.WritePropertyName("secretName"); context.Writer.Write(requestObject.SecretName); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static EksSecretMarshaller Instance = new EksSecretMarshaller(); } }
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 batch-2016-08-10.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.Batch.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Batch.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for EksSecret Object /// </summary> public class EksSecretUnmarshaller : IUnmarshaller<EksSecret, XmlUnmarshallerContext>, IUnmarshaller<EksSecret, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> EksSecret IUnmarshaller<EksSecret, 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 EksSecret Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; EksSecret unmarshalledObject = new EksSecret(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("optional", targetDepth)) { var unmarshaller = BoolUnmarshaller.Instance; unmarshalledObject.Optional = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("secretName", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.SecretName = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static EksSecretUnmarshaller _instance = new EksSecretUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static EksSecretUnmarshaller 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 batch-2016-08-10.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.Batch.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Batch.Model.Internal.MarshallTransformations { /// <summary> /// EksVolume Marshaller /// </summary> public class EksVolumeMarshaller : IRequestMarshaller<EksVolume, 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(EksVolume requestObject, JsonMarshallerContext context) { if(requestObject.IsSetEmptyDir()) { context.Writer.WritePropertyName("emptyDir"); context.Writer.WriteObjectStart(); var marshaller = EksEmptyDirMarshaller.Instance; marshaller.Marshall(requestObject.EmptyDir, context); context.Writer.WriteObjectEnd(); } if(requestObject.IsSetHostPath()) { context.Writer.WritePropertyName("hostPath"); context.Writer.WriteObjectStart(); var marshaller = EksHostPathMarshaller.Instance; marshaller.Marshall(requestObject.HostPath, context); context.Writer.WriteObjectEnd(); } if(requestObject.IsSetName()) { context.Writer.WritePropertyName("name"); context.Writer.Write(requestObject.Name); } if(requestObject.IsSetSecret()) { context.Writer.WritePropertyName("secret"); context.Writer.WriteObjectStart(); var marshaller = EksSecretMarshaller.Instance; marshaller.Marshall(requestObject.Secret, context); context.Writer.WriteObjectEnd(); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static EksVolumeMarshaller Instance = new EksVolumeMarshaller(); } }
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 batch-2016-08-10.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.Batch.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Batch.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for EksVolume Object /// </summary> public class EksVolumeUnmarshaller : IUnmarshaller<EksVolume, XmlUnmarshallerContext>, IUnmarshaller<EksVolume, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> EksVolume IUnmarshaller<EksVolume, 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 EksVolume Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; EksVolume unmarshalledObject = new EksVolume(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("emptyDir", targetDepth)) { var unmarshaller = EksEmptyDirUnmarshaller.Instance; unmarshalledObject.EmptyDir = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("hostPath", targetDepth)) { var unmarshaller = EksHostPathUnmarshaller.Instance; unmarshalledObject.HostPath = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("name", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Name = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("secret", targetDepth)) { var unmarshaller = EksSecretUnmarshaller.Instance; unmarshalledObject.Secret = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static EksVolumeUnmarshaller _instance = new EksVolumeUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static EksVolumeUnmarshaller 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 batch-2016-08-10.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.Batch.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Batch.Model.Internal.MarshallTransformations { /// <summary> /// EphemeralStorage Marshaller /// </summary> public class EphemeralStorageMarshaller : IRequestMarshaller<EphemeralStorage, 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(EphemeralStorage requestObject, JsonMarshallerContext context) { if(requestObject.IsSetSizeInGiB()) { context.Writer.WritePropertyName("sizeInGiB"); context.Writer.Write(requestObject.SizeInGiB); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static EphemeralStorageMarshaller Instance = new EphemeralStorageMarshaller(); } }
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 batch-2016-08-10.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.Batch.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Batch.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for EphemeralStorage Object /// </summary> public class EphemeralStorageUnmarshaller : IUnmarshaller<EphemeralStorage, XmlUnmarshallerContext>, IUnmarshaller<EphemeralStorage, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> EphemeralStorage IUnmarshaller<EphemeralStorage, 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 EphemeralStorage Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; EphemeralStorage unmarshalledObject = new EphemeralStorage(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("sizeInGiB", targetDepth)) { var unmarshaller = IntUnmarshaller.Instance; unmarshalledObject.SizeInGiB = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static EphemeralStorageUnmarshaller _instance = new EphemeralStorageUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static EphemeralStorageUnmarshaller 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 batch-2016-08-10.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.Batch.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Batch.Model.Internal.MarshallTransformations { /// <summary> /// EvaluateOnExit Marshaller /// </summary> public class EvaluateOnExitMarshaller : IRequestMarshaller<EvaluateOnExit, 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(EvaluateOnExit requestObject, JsonMarshallerContext context) { if(requestObject.IsSetAction()) { context.Writer.WritePropertyName("action"); context.Writer.Write(requestObject.Action); } if(requestObject.IsSetOnExitCode()) { context.Writer.WritePropertyName("onExitCode"); context.Writer.Write(requestObject.OnExitCode); } if(requestObject.IsSetOnReason()) { context.Writer.WritePropertyName("onReason"); context.Writer.Write(requestObject.OnReason); } if(requestObject.IsSetOnStatusReason()) { context.Writer.WritePropertyName("onStatusReason"); context.Writer.Write(requestObject.OnStatusReason); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static EvaluateOnExitMarshaller Instance = new EvaluateOnExitMarshaller(); } }
80
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 batch-2016-08-10.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.Batch.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Batch.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for EvaluateOnExit Object /// </summary> public class EvaluateOnExitUnmarshaller : IUnmarshaller<EvaluateOnExit, XmlUnmarshallerContext>, IUnmarshaller<EvaluateOnExit, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> EvaluateOnExit IUnmarshaller<EvaluateOnExit, 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 EvaluateOnExit Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; EvaluateOnExit unmarshalledObject = new EvaluateOnExit(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("action", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Action = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("onExitCode", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.OnExitCode = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("onReason", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.OnReason = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("onStatusReason", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.OnStatusReason = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static EvaluateOnExitUnmarshaller _instance = new EvaluateOnExitUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static EvaluateOnExitUnmarshaller 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 batch-2016-08-10.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.Batch.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Batch.Model.Internal.MarshallTransformations { /// <summary> /// FairsharePolicy Marshaller /// </summary> public class FairsharePolicyMarshaller : IRequestMarshaller<FairsharePolicy, 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(FairsharePolicy requestObject, JsonMarshallerContext context) { if(requestObject.IsSetComputeReservation()) { context.Writer.WritePropertyName("computeReservation"); context.Writer.Write(requestObject.ComputeReservation); } if(requestObject.IsSetShareDecaySeconds()) { context.Writer.WritePropertyName("shareDecaySeconds"); context.Writer.Write(requestObject.ShareDecaySeconds); } if(requestObject.IsSetShareDistribution()) { context.Writer.WritePropertyName("shareDistribution"); context.Writer.WriteArrayStart(); foreach(var requestObjectShareDistributionListValue in requestObject.ShareDistribution) { context.Writer.WriteObjectStart(); var marshaller = ShareAttributesMarshaller.Instance; marshaller.Marshall(requestObjectShareDistributionListValue, context); context.Writer.WriteObjectEnd(); } context.Writer.WriteArrayEnd(); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static FairsharePolicyMarshaller Instance = new FairsharePolicyMarshaller(); } }
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 batch-2016-08-10.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.Batch.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Batch.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for FairsharePolicy Object /// </summary> public class FairsharePolicyUnmarshaller : IUnmarshaller<FairsharePolicy, XmlUnmarshallerContext>, IUnmarshaller<FairsharePolicy, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> FairsharePolicy IUnmarshaller<FairsharePolicy, 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 FairsharePolicy Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; FairsharePolicy unmarshalledObject = new FairsharePolicy(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("computeReservation", targetDepth)) { var unmarshaller = IntUnmarshaller.Instance; unmarshalledObject.ComputeReservation = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("shareDecaySeconds", targetDepth)) { var unmarshaller = IntUnmarshaller.Instance; unmarshalledObject.ShareDecaySeconds = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("shareDistribution", targetDepth)) { var unmarshaller = new ListUnmarshaller<ShareAttributes, ShareAttributesUnmarshaller>(ShareAttributesUnmarshaller.Instance); unmarshalledObject.ShareDistribution = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static FairsharePolicyUnmarshaller _instance = new FairsharePolicyUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static FairsharePolicyUnmarshaller 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 batch-2016-08-10.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.Batch.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Batch.Model.Internal.MarshallTransformations { /// <summary> /// FargatePlatformConfiguration Marshaller /// </summary> public class FargatePlatformConfigurationMarshaller : IRequestMarshaller<FargatePlatformConfiguration, 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(FargatePlatformConfiguration requestObject, JsonMarshallerContext context) { if(requestObject.IsSetPlatformVersion()) { context.Writer.WritePropertyName("platformVersion"); context.Writer.Write(requestObject.PlatformVersion); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static FargatePlatformConfigurationMarshaller Instance = new FargatePlatformConfigurationMarshaller(); } }
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 batch-2016-08-10.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.Batch.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Batch.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for FargatePlatformConfiguration Object /// </summary> public class FargatePlatformConfigurationUnmarshaller : IUnmarshaller<FargatePlatformConfiguration, XmlUnmarshallerContext>, IUnmarshaller<FargatePlatformConfiguration, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> FargatePlatformConfiguration IUnmarshaller<FargatePlatformConfiguration, 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 FargatePlatformConfiguration Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; FargatePlatformConfiguration unmarshalledObject = new FargatePlatformConfiguration(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("platformVersion", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.PlatformVersion = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static FargatePlatformConfigurationUnmarshaller _instance = new FargatePlatformConfigurationUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static FargatePlatformConfigurationUnmarshaller 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 batch-2016-08-10.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.Batch.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Batch.Model.Internal.MarshallTransformations { /// <summary> /// Host Marshaller /// </summary> public class HostMarshaller : IRequestMarshaller<Host, 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(Host requestObject, JsonMarshallerContext context) { if(requestObject.IsSetSourcePath()) { context.Writer.WritePropertyName("sourcePath"); context.Writer.Write(requestObject.SourcePath); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static HostMarshaller Instance = new HostMarshaller(); } }
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 batch-2016-08-10.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.Batch.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Batch.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for Host Object /// </summary> public class HostUnmarshaller : IUnmarshaller<Host, XmlUnmarshallerContext>, IUnmarshaller<Host, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> Host IUnmarshaller<Host, 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 Host Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; Host unmarshalledObject = new Host(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("sourcePath", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.SourcePath = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static HostUnmarshaller _instance = new HostUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static HostUnmarshaller 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 batch-2016-08-10.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.Batch.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Batch.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for JobDefinition Object /// </summary> public class JobDefinitionUnmarshaller : IUnmarshaller<JobDefinition, XmlUnmarshallerContext>, IUnmarshaller<JobDefinition, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> JobDefinition IUnmarshaller<JobDefinition, 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 JobDefinition Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; JobDefinition unmarshalledObject = new JobDefinition(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("containerOrchestrationType", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.ContainerOrchestrationType = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("containerProperties", targetDepth)) { var unmarshaller = ContainerPropertiesUnmarshaller.Instance; unmarshalledObject.ContainerProperties = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("eksProperties", targetDepth)) { var unmarshaller = EksPropertiesUnmarshaller.Instance; unmarshalledObject.EksProperties = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("jobDefinitionArn", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.JobDefinitionArn = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("jobDefinitionName", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.JobDefinitionName = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("nodeProperties", targetDepth)) { var unmarshaller = NodePropertiesUnmarshaller.Instance; unmarshalledObject.NodeProperties = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("parameters", targetDepth)) { var unmarshaller = new DictionaryUnmarshaller<string, string, StringUnmarshaller, StringUnmarshaller>(StringUnmarshaller.Instance, StringUnmarshaller.Instance); unmarshalledObject.Parameters = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("platformCapabilities", targetDepth)) { var unmarshaller = new ListUnmarshaller<string, StringUnmarshaller>(StringUnmarshaller.Instance); unmarshalledObject.PlatformCapabilities = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("propagateTags", targetDepth)) { var unmarshaller = BoolUnmarshaller.Instance; unmarshalledObject.PropagateTags = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("retryStrategy", targetDepth)) { var unmarshaller = RetryStrategyUnmarshaller.Instance; unmarshalledObject.RetryStrategy = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("revision", targetDepth)) { var unmarshaller = IntUnmarshaller.Instance; unmarshalledObject.Revision = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("schedulingPriority", targetDepth)) { var unmarshaller = IntUnmarshaller.Instance; unmarshalledObject.SchedulingPriority = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("status", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Status = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("tags", targetDepth)) { var unmarshaller = new DictionaryUnmarshaller<string, string, StringUnmarshaller, StringUnmarshaller>(StringUnmarshaller.Instance, StringUnmarshaller.Instance); unmarshalledObject.Tags = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("timeout", targetDepth)) { var unmarshaller = JobTimeoutUnmarshaller.Instance; unmarshalledObject.Timeout = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("type", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Type = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static JobDefinitionUnmarshaller _instance = new JobDefinitionUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static JobDefinitionUnmarshaller Instance { get { return _instance; } } } }
182
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 batch-2016-08-10.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.Batch.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Batch.Model.Internal.MarshallTransformations { /// <summary> /// JobDependency Marshaller /// </summary> public class JobDependencyMarshaller : IRequestMarshaller<JobDependency, 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(JobDependency requestObject, JsonMarshallerContext context) { if(requestObject.IsSetJobId()) { context.Writer.WritePropertyName("jobId"); context.Writer.Write(requestObject.JobId); } if(requestObject.IsSetType()) { context.Writer.WritePropertyName("type"); context.Writer.Write(requestObject.Type); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static JobDependencyMarshaller Instance = new JobDependencyMarshaller(); } }
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 batch-2016-08-10.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.Batch.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Batch.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for JobDependency Object /// </summary> public class JobDependencyUnmarshaller : IUnmarshaller<JobDependency, XmlUnmarshallerContext>, IUnmarshaller<JobDependency, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> JobDependency IUnmarshaller<JobDependency, 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 JobDependency Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; JobDependency unmarshalledObject = new JobDependency(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("jobId", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.JobId = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("type", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Type = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static JobDependencyUnmarshaller _instance = new JobDependencyUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static JobDependencyUnmarshaller 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 batch-2016-08-10.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.Batch.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Batch.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for JobDetail Object /// </summary> public class JobDetailUnmarshaller : IUnmarshaller<JobDetail, XmlUnmarshallerContext>, IUnmarshaller<JobDetail, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> JobDetail IUnmarshaller<JobDetail, 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 JobDetail Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; JobDetail unmarshalledObject = new JobDetail(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("arrayProperties", targetDepth)) { var unmarshaller = ArrayPropertiesDetailUnmarshaller.Instance; unmarshalledObject.ArrayProperties = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("attempts", targetDepth)) { var unmarshaller = new ListUnmarshaller<AttemptDetail, AttemptDetailUnmarshaller>(AttemptDetailUnmarshaller.Instance); unmarshalledObject.Attempts = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("container", targetDepth)) { var unmarshaller = ContainerDetailUnmarshaller.Instance; unmarshalledObject.Container = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("createdAt", targetDepth)) { var unmarshaller = LongUnmarshaller.Instance; unmarshalledObject.CreatedAt = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("dependsOn", targetDepth)) { var unmarshaller = new ListUnmarshaller<JobDependency, JobDependencyUnmarshaller>(JobDependencyUnmarshaller.Instance); unmarshalledObject.DependsOn = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("eksAttempts", targetDepth)) { var unmarshaller = new ListUnmarshaller<EksAttemptDetail, EksAttemptDetailUnmarshaller>(EksAttemptDetailUnmarshaller.Instance); unmarshalledObject.EksAttempts = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("eksProperties", targetDepth)) { var unmarshaller = EksPropertiesDetailUnmarshaller.Instance; unmarshalledObject.EksProperties = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("isCancelled", targetDepth)) { var unmarshaller = BoolUnmarshaller.Instance; unmarshalledObject.IsCancelled = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("isTerminated", targetDepth)) { var unmarshaller = BoolUnmarshaller.Instance; unmarshalledObject.IsTerminated = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("jobArn", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.JobArn = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("jobDefinition", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.JobDefinition = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("jobId", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.JobId = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("jobName", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.JobName = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("jobQueue", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.JobQueue = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("nodeDetails", targetDepth)) { var unmarshaller = NodeDetailsUnmarshaller.Instance; unmarshalledObject.NodeDetails = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("nodeProperties", targetDepth)) { var unmarshaller = NodePropertiesUnmarshaller.Instance; unmarshalledObject.NodeProperties = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("parameters", targetDepth)) { var unmarshaller = new DictionaryUnmarshaller<string, string, StringUnmarshaller, StringUnmarshaller>(StringUnmarshaller.Instance, StringUnmarshaller.Instance); unmarshalledObject.Parameters = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("platformCapabilities", targetDepth)) { var unmarshaller = new ListUnmarshaller<string, StringUnmarshaller>(StringUnmarshaller.Instance); unmarshalledObject.PlatformCapabilities = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("propagateTags", targetDepth)) { var unmarshaller = BoolUnmarshaller.Instance; unmarshalledObject.PropagateTags = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("retryStrategy", targetDepth)) { var unmarshaller = RetryStrategyUnmarshaller.Instance; unmarshalledObject.RetryStrategy = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("schedulingPriority", targetDepth)) { var unmarshaller = IntUnmarshaller.Instance; unmarshalledObject.SchedulingPriority = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("shareIdentifier", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.ShareIdentifier = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("startedAt", targetDepth)) { var unmarshaller = LongUnmarshaller.Instance; unmarshalledObject.StartedAt = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("status", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Status = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("statusReason", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.StatusReason = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("stoppedAt", targetDepth)) { var unmarshaller = LongUnmarshaller.Instance; unmarshalledObject.StoppedAt = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("tags", targetDepth)) { var unmarshaller = new DictionaryUnmarshaller<string, string, StringUnmarshaller, StringUnmarshaller>(StringUnmarshaller.Instance, StringUnmarshaller.Instance); unmarshalledObject.Tags = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("timeout", targetDepth)) { var unmarshaller = JobTimeoutUnmarshaller.Instance; unmarshalledObject.Timeout = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static JobDetailUnmarshaller _instance = new JobDetailUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static JobDetailUnmarshaller Instance { get { return _instance; } } } }
254
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 batch-2016-08-10.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.Batch.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Batch.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for JobQueueDetail Object /// </summary> public class JobQueueDetailUnmarshaller : IUnmarshaller<JobQueueDetail, XmlUnmarshallerContext>, IUnmarshaller<JobQueueDetail, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> JobQueueDetail IUnmarshaller<JobQueueDetail, 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 JobQueueDetail Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; JobQueueDetail unmarshalledObject = new JobQueueDetail(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("computeEnvironmentOrder", targetDepth)) { var unmarshaller = new ListUnmarshaller<ComputeEnvironmentOrder, ComputeEnvironmentOrderUnmarshaller>(ComputeEnvironmentOrderUnmarshaller.Instance); unmarshalledObject.ComputeEnvironmentOrder = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("jobQueueArn", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.JobQueueArn = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("jobQueueName", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.JobQueueName = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("priority", targetDepth)) { var unmarshaller = IntUnmarshaller.Instance; unmarshalledObject.Priority = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("schedulingPolicyArn", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.SchedulingPolicyArn = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("state", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.State = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("status", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Status = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("statusReason", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.StatusReason = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("tags", targetDepth)) { var unmarshaller = new DictionaryUnmarshaller<string, string, StringUnmarshaller, StringUnmarshaller>(StringUnmarshaller.Instance, StringUnmarshaller.Instance); unmarshalledObject.Tags = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static JobQueueDetailUnmarshaller _instance = new JobQueueDetailUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static JobQueueDetailUnmarshaller 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 batch-2016-08-10.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.Batch.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Batch.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for JobSummary Object /// </summary> public class JobSummaryUnmarshaller : IUnmarshaller<JobSummary, XmlUnmarshallerContext>, IUnmarshaller<JobSummary, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> JobSummary IUnmarshaller<JobSummary, 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 JobSummary Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; JobSummary unmarshalledObject = new JobSummary(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("arrayProperties", targetDepth)) { var unmarshaller = ArrayPropertiesSummaryUnmarshaller.Instance; unmarshalledObject.ArrayProperties = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("container", targetDepth)) { var unmarshaller = ContainerSummaryUnmarshaller.Instance; unmarshalledObject.Container = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("createdAt", targetDepth)) { var unmarshaller = LongUnmarshaller.Instance; unmarshalledObject.CreatedAt = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("jobArn", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.JobArn = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("jobDefinition", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.JobDefinition = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("jobId", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.JobId = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("jobName", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.JobName = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("nodeProperties", targetDepth)) { var unmarshaller = NodePropertiesSummaryUnmarshaller.Instance; unmarshalledObject.NodeProperties = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("startedAt", targetDepth)) { var unmarshaller = LongUnmarshaller.Instance; unmarshalledObject.StartedAt = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("status", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Status = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("statusReason", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.StatusReason = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("stoppedAt", targetDepth)) { var unmarshaller = LongUnmarshaller.Instance; unmarshalledObject.StoppedAt = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static JobSummaryUnmarshaller _instance = new JobSummaryUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static JobSummaryUnmarshaller Instance { get { return _instance; } } } }
158
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 batch-2016-08-10.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.Batch.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Batch.Model.Internal.MarshallTransformations { /// <summary> /// JobTimeout Marshaller /// </summary> public class JobTimeoutMarshaller : IRequestMarshaller<JobTimeout, 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(JobTimeout requestObject, JsonMarshallerContext context) { if(requestObject.IsSetAttemptDurationSeconds()) { context.Writer.WritePropertyName("attemptDurationSeconds"); context.Writer.Write(requestObject.AttemptDurationSeconds); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static JobTimeoutMarshaller Instance = new JobTimeoutMarshaller(); } }
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 batch-2016-08-10.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.Batch.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Batch.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for JobTimeout Object /// </summary> public class JobTimeoutUnmarshaller : IUnmarshaller<JobTimeout, XmlUnmarshallerContext>, IUnmarshaller<JobTimeout, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> JobTimeout IUnmarshaller<JobTimeout, 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 JobTimeout Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; JobTimeout unmarshalledObject = new JobTimeout(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("attemptDurationSeconds", targetDepth)) { var unmarshaller = IntUnmarshaller.Instance; unmarshalledObject.AttemptDurationSeconds = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static JobTimeoutUnmarshaller _instance = new JobTimeoutUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static JobTimeoutUnmarshaller 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 batch-2016-08-10.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.Batch.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Batch.Model.Internal.MarshallTransformations { /// <summary> /// KeyValuePair Marshaller /// </summary> public class KeyValuePairMarshaller : IRequestMarshaller<KeyValuePair, 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(KeyValuePair requestObject, JsonMarshallerContext context) { if(requestObject.IsSetName()) { context.Writer.WritePropertyName("name"); context.Writer.Write(requestObject.Name); } if(requestObject.IsSetValue()) { context.Writer.WritePropertyName("value"); context.Writer.Write(requestObject.Value); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static KeyValuePairMarshaller Instance = new KeyValuePairMarshaller(); } }
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 batch-2016-08-10.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.Batch.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Batch.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for KeyValuePair Object /// </summary> public class KeyValuePairUnmarshaller : IUnmarshaller<KeyValuePair, XmlUnmarshallerContext>, IUnmarshaller<KeyValuePair, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> KeyValuePair IUnmarshaller<KeyValuePair, 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 KeyValuePair Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; KeyValuePair unmarshalledObject = new KeyValuePair(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("name", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Name = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("value", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Value = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static KeyValuePairUnmarshaller _instance = new KeyValuePairUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static KeyValuePairUnmarshaller 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 batch-2016-08-10.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.Batch.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Batch.Model.Internal.MarshallTransformations { /// <summary> /// KeyValuesPair Marshaller /// </summary> public class KeyValuesPairMarshaller : IRequestMarshaller<KeyValuesPair, 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(KeyValuesPair requestObject, JsonMarshallerContext context) { if(requestObject.IsSetName()) { context.Writer.WritePropertyName("name"); context.Writer.Write(requestObject.Name); } if(requestObject.IsSetValues()) { context.Writer.WritePropertyName("values"); context.Writer.WriteArrayStart(); foreach(var requestObjectValuesListValue in requestObject.Values) { context.Writer.Write(requestObjectValuesListValue); } context.Writer.WriteArrayEnd(); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static KeyValuesPairMarshaller Instance = new KeyValuesPairMarshaller(); } }
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 batch-2016-08-10.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.Batch.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Batch.Model.Internal.MarshallTransformations { /// <summary> /// LaunchTemplateSpecification Marshaller /// </summary> public class LaunchTemplateSpecificationMarshaller : IRequestMarshaller<LaunchTemplateSpecification, 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(LaunchTemplateSpecification requestObject, JsonMarshallerContext context) { if(requestObject.IsSetLaunchTemplateId()) { context.Writer.WritePropertyName("launchTemplateId"); context.Writer.Write(requestObject.LaunchTemplateId); } if(requestObject.IsSetLaunchTemplateName()) { context.Writer.WritePropertyName("launchTemplateName"); context.Writer.Write(requestObject.LaunchTemplateName); } if(requestObject.IsSetVersion()) { context.Writer.WritePropertyName("version"); context.Writer.Write(requestObject.Version); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static LaunchTemplateSpecificationMarshaller Instance = new LaunchTemplateSpecificationMarshaller(); } }
74
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 batch-2016-08-10.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.Batch.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Batch.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for LaunchTemplateSpecification Object /// </summary> public class LaunchTemplateSpecificationUnmarshaller : IUnmarshaller<LaunchTemplateSpecification, XmlUnmarshallerContext>, IUnmarshaller<LaunchTemplateSpecification, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> LaunchTemplateSpecification IUnmarshaller<LaunchTemplateSpecification, 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 LaunchTemplateSpecification Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; LaunchTemplateSpecification unmarshalledObject = new LaunchTemplateSpecification(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("launchTemplateId", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.LaunchTemplateId = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("launchTemplateName", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.LaunchTemplateName = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("version", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Version = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static LaunchTemplateSpecificationUnmarshaller _instance = new LaunchTemplateSpecificationUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static LaunchTemplateSpecificationUnmarshaller 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 batch-2016-08-10.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.Batch.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Batch.Model.Internal.MarshallTransformations { /// <summary> /// LinuxParameters Marshaller /// </summary> public class LinuxParametersMarshaller : IRequestMarshaller<LinuxParameters, 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(LinuxParameters requestObject, JsonMarshallerContext context) { if(requestObject.IsSetDevices()) { context.Writer.WritePropertyName("devices"); context.Writer.WriteArrayStart(); foreach(var requestObjectDevicesListValue in requestObject.Devices) { context.Writer.WriteObjectStart(); var marshaller = DeviceMarshaller.Instance; marshaller.Marshall(requestObjectDevicesListValue, context); context.Writer.WriteObjectEnd(); } context.Writer.WriteArrayEnd(); } if(requestObject.IsSetInitProcessEnabled()) { context.Writer.WritePropertyName("initProcessEnabled"); context.Writer.Write(requestObject.InitProcessEnabled); } if(requestObject.IsSetMaxSwap()) { context.Writer.WritePropertyName("maxSwap"); context.Writer.Write(requestObject.MaxSwap); } if(requestObject.IsSetSharedMemorySize()) { context.Writer.WritePropertyName("sharedMemorySize"); context.Writer.Write(requestObject.SharedMemorySize); } if(requestObject.IsSetSwappiness()) { context.Writer.WritePropertyName("swappiness"); context.Writer.Write(requestObject.Swappiness); } if(requestObject.IsSetTmpfs()) { context.Writer.WritePropertyName("tmpfs"); context.Writer.WriteArrayStart(); foreach(var requestObjectTmpfsListValue in requestObject.Tmpfs) { context.Writer.WriteObjectStart(); var marshaller = TmpfsMarshaller.Instance; marshaller.Marshall(requestObjectTmpfsListValue, context); context.Writer.WriteObjectEnd(); } context.Writer.WriteArrayEnd(); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static LinuxParametersMarshaller Instance = new LinuxParametersMarshaller(); } }
112
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 batch-2016-08-10.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.Batch.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Batch.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for LinuxParameters Object /// </summary> public class LinuxParametersUnmarshaller : IUnmarshaller<LinuxParameters, XmlUnmarshallerContext>, IUnmarshaller<LinuxParameters, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> LinuxParameters IUnmarshaller<LinuxParameters, 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 LinuxParameters Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; LinuxParameters unmarshalledObject = new LinuxParameters(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("devices", targetDepth)) { var unmarshaller = new ListUnmarshaller<Device, DeviceUnmarshaller>(DeviceUnmarshaller.Instance); unmarshalledObject.Devices = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("initProcessEnabled", targetDepth)) { var unmarshaller = BoolUnmarshaller.Instance; unmarshalledObject.InitProcessEnabled = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("maxSwap", targetDepth)) { var unmarshaller = IntUnmarshaller.Instance; unmarshalledObject.MaxSwap = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("sharedMemorySize", targetDepth)) { var unmarshaller = IntUnmarshaller.Instance; unmarshalledObject.SharedMemorySize = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("swappiness", targetDepth)) { var unmarshaller = IntUnmarshaller.Instance; unmarshalledObject.Swappiness = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("tmpfs", targetDepth)) { var unmarshaller = new ListUnmarshaller<Tmpfs, TmpfsUnmarshaller>(TmpfsUnmarshaller.Instance); unmarshalledObject.Tmpfs = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static LinuxParametersUnmarshaller _instance = new LinuxParametersUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static LinuxParametersUnmarshaller Instance { get { return _instance; } } } }
122
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the batch-2016-08-10.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.Batch.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Batch.Model.Internal.MarshallTransformations { /// <summary> /// ListJobs Request Marshaller /// </summary> public class ListJobsRequestMarshaller : IMarshaller<IRequest, ListJobsRequest> , 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((ListJobsRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(ListJobsRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.Batch"); request.Headers["Content-Type"] = "application/json"; request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2016-08-10"; request.HttpMethod = "POST"; request.ResourcePath = "/v1/listjobs"; using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) { JsonWriter writer = new JsonWriter(stringWriter); writer.WriteObjectStart(); var context = new JsonMarshallerContext(request, writer); if(publicRequest.IsSetArrayJobId()) { context.Writer.WritePropertyName("arrayJobId"); context.Writer.Write(publicRequest.ArrayJobId); } if(publicRequest.IsSetFilters()) { context.Writer.WritePropertyName("filters"); context.Writer.WriteArrayStart(); foreach(var publicRequestFiltersListValue in publicRequest.Filters) { context.Writer.WriteObjectStart(); var marshaller = KeyValuesPairMarshaller.Instance; marshaller.Marshall(publicRequestFiltersListValue, context); context.Writer.WriteObjectEnd(); } context.Writer.WriteArrayEnd(); } if(publicRequest.IsSetJobQueue()) { context.Writer.WritePropertyName("jobQueue"); context.Writer.Write(publicRequest.JobQueue); } if(publicRequest.IsSetJobStatus()) { context.Writer.WritePropertyName("jobStatus"); context.Writer.Write(publicRequest.JobStatus); } if(publicRequest.IsSetMaxResults()) { context.Writer.WritePropertyName("maxResults"); context.Writer.Write(publicRequest.MaxResults); } if(publicRequest.IsSetMultiNodeJobId()) { context.Writer.WritePropertyName("multiNodeJobId"); context.Writer.Write(publicRequest.MultiNodeJobId); } if(publicRequest.IsSetNextToken()) { context.Writer.WritePropertyName("nextToken"); context.Writer.Write(publicRequest.NextToken); } writer.WriteObjectEnd(); string snippet = stringWriter.ToString(); request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); } return request; } private static ListJobsRequestMarshaller _instance = new ListJobsRequestMarshaller(); internal static ListJobsRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static ListJobsRequestMarshaller Instance { get { return _instance; } } } }
147
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 batch-2016-08-10.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.Batch.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Batch.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for ListJobs operation /// </summary> public class ListJobsResponseUnmarshaller : 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) { ListJobsResponse response = new ListJobsResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("jobSummaryList", targetDepth)) { var unmarshaller = new ListUnmarshaller<JobSummary, JobSummaryUnmarshaller>(JobSummaryUnmarshaller.Instance); response.JobSummaryList = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("nextToken", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.NextToken = unmarshaller.Unmarshall(context); continue; } } return response; } /// <summary> /// Unmarshaller error response to exception. /// </summary> /// <param name="context"></param> /// <param name="innerException"></param> /// <param name="statusCode"></param> /// <returns></returns> public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) { var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context); errorResponse.InnerException = innerException; errorResponse.StatusCode = statusCode; var responseBodyBytes = context.GetResponseBodyBytes(); using (var streamCopy = new MemoryStream(responseBodyBytes)) using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null)) { if (errorResponse.Code != null && errorResponse.Code.Equals("ClientException")) { return ClientExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ServerException")) { return ServerExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonBatchException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static ListJobsResponseUnmarshaller _instance = new ListJobsResponseUnmarshaller(); internal static ListJobsResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static ListJobsResponseUnmarshaller 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 batch-2016-08-10.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.Batch.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Batch.Model.Internal.MarshallTransformations { /// <summary> /// ListSchedulingPolicies Request Marshaller /// </summary> public class ListSchedulingPoliciesRequestMarshaller : IMarshaller<IRequest, ListSchedulingPoliciesRequest> , 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((ListSchedulingPoliciesRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(ListSchedulingPoliciesRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.Batch"); request.Headers["Content-Type"] = "application/json"; request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2016-08-10"; request.HttpMethod = "POST"; request.ResourcePath = "/v1/listschedulingpolicies"; using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) { JsonWriter writer = new JsonWriter(stringWriter); writer.WriteObjectStart(); var context = new JsonMarshallerContext(request, writer); if(publicRequest.IsSetMaxResults()) { context.Writer.WritePropertyName("maxResults"); context.Writer.Write(publicRequest.MaxResults); } if(publicRequest.IsSetNextToken()) { context.Writer.WritePropertyName("nextToken"); context.Writer.Write(publicRequest.NextToken); } writer.WriteObjectEnd(); string snippet = stringWriter.ToString(); request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); } return request; } private static ListSchedulingPoliciesRequestMarshaller _instance = new ListSchedulingPoliciesRequestMarshaller(); internal static ListSchedulingPoliciesRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static ListSchedulingPoliciesRequestMarshaller Instance { get { return _instance; } } } }
107
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 batch-2016-08-10.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.Batch.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Batch.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for ListSchedulingPolicies operation /// </summary> public class ListSchedulingPoliciesResponseUnmarshaller : 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) { ListSchedulingPoliciesResponse response = new ListSchedulingPoliciesResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("nextToken", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.NextToken = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("schedulingPolicies", targetDepth)) { var unmarshaller = new ListUnmarshaller<SchedulingPolicyListingDetail, SchedulingPolicyListingDetailUnmarshaller>(SchedulingPolicyListingDetailUnmarshaller.Instance); response.SchedulingPolicies = unmarshaller.Unmarshall(context); continue; } } return response; } /// <summary> /// Unmarshaller error response to exception. /// </summary> /// <param name="context"></param> /// <param name="innerException"></param> /// <param name="statusCode"></param> /// <returns></returns> public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) { var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context); errorResponse.InnerException = innerException; errorResponse.StatusCode = statusCode; var responseBodyBytes = context.GetResponseBodyBytes(); using (var streamCopy = new MemoryStream(responseBodyBytes)) using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null)) { if (errorResponse.Code != null && errorResponse.Code.Equals("ClientException")) { return ClientExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ServerException")) { return ServerExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonBatchException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static ListSchedulingPoliciesResponseUnmarshaller _instance = new ListSchedulingPoliciesResponseUnmarshaller(); internal static ListSchedulingPoliciesResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static ListSchedulingPoliciesResponseUnmarshaller 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 batch-2016-08-10.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.Batch.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Batch.Model.Internal.MarshallTransformations { /// <summary> /// ListTagsForResource Request Marshaller /// </summary> public class ListTagsForResourceRequestMarshaller : IMarshaller<IRequest, ListTagsForResourceRequest> , IMarshaller<IRequest,AmazonWebServiceRequest> { /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="input"></param> /// <returns></returns> public IRequest Marshall(AmazonWebServiceRequest input) { return this.Marshall((ListTagsForResourceRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(ListTagsForResourceRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.Batch"); request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2016-08-10"; request.HttpMethod = "GET"; if (!publicRequest.IsSetResourceArn()) throw new AmazonBatchException("Request object does not have required field ResourceArn set"); request.AddPathResource("{resourceArn}", StringUtils.FromString(publicRequest.ResourceArn)); request.ResourcePath = "/v1/tags/{resourceArn}"; return request; } private static ListTagsForResourceRequestMarshaller _instance = new ListTagsForResourceRequestMarshaller(); internal static ListTagsForResourceRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static ListTagsForResourceRequestMarshaller Instance { get { return _instance; } } } }
87
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 batch-2016-08-10.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.Batch.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Batch.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for ListTagsForResource operation /// </summary> public class ListTagsForResourceResponseUnmarshaller : JsonResponseUnmarshaller { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { ListTagsForResourceResponse response = new ListTagsForResourceResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("tags", targetDepth)) { var unmarshaller = new DictionaryUnmarshaller<string, string, StringUnmarshaller, StringUnmarshaller>(StringUnmarshaller.Instance, StringUnmarshaller.Instance); response.Tags = unmarshaller.Unmarshall(context); continue; } } return response; } /// <summary> /// Unmarshaller error response to exception. /// </summary> /// <param name="context"></param> /// <param name="innerException"></param> /// <param name="statusCode"></param> /// <returns></returns> public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) { var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context); errorResponse.InnerException = innerException; errorResponse.StatusCode = statusCode; var responseBodyBytes = context.GetResponseBodyBytes(); using (var streamCopy = new MemoryStream(responseBodyBytes)) using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null)) { if (errorResponse.Code != null && errorResponse.Code.Equals("ClientException")) { return ClientExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ServerException")) { return ServerExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonBatchException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static ListTagsForResourceResponseUnmarshaller _instance = new ListTagsForResourceResponseUnmarshaller(); internal static ListTagsForResourceResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static ListTagsForResourceResponseUnmarshaller Instance { get { return _instance; } } } }
114
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 batch-2016-08-10.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.Batch.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Batch.Model.Internal.MarshallTransformations { /// <summary> /// LogConfiguration Marshaller /// </summary> public class LogConfigurationMarshaller : IRequestMarshaller<LogConfiguration, 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(LogConfiguration requestObject, JsonMarshallerContext context) { if(requestObject.IsSetLogDriver()) { context.Writer.WritePropertyName("logDriver"); context.Writer.Write(requestObject.LogDriver); } if(requestObject.IsSetOptions()) { context.Writer.WritePropertyName("options"); context.Writer.WriteObjectStart(); foreach (var requestObjectOptionsKvp in requestObject.Options) { context.Writer.WritePropertyName(requestObjectOptionsKvp.Key); var requestObjectOptionsValue = requestObjectOptionsKvp.Value; context.Writer.Write(requestObjectOptionsValue); } context.Writer.WriteObjectEnd(); } if(requestObject.IsSetSecretOptions()) { context.Writer.WritePropertyName("secretOptions"); context.Writer.WriteArrayStart(); foreach(var requestObjectSecretOptionsListValue in requestObject.SecretOptions) { context.Writer.WriteObjectStart(); var marshaller = SecretMarshaller.Instance; marshaller.Marshall(requestObjectSecretOptionsListValue, context); context.Writer.WriteObjectEnd(); } context.Writer.WriteArrayEnd(); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static LogConfigurationMarshaller Instance = new LogConfigurationMarshaller(); } }
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 batch-2016-08-10.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.Batch.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Batch.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for LogConfiguration Object /// </summary> public class LogConfigurationUnmarshaller : IUnmarshaller<LogConfiguration, XmlUnmarshallerContext>, IUnmarshaller<LogConfiguration, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> LogConfiguration IUnmarshaller<LogConfiguration, 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 LogConfiguration Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; LogConfiguration unmarshalledObject = new LogConfiguration(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("logDriver", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.LogDriver = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("options", targetDepth)) { var unmarshaller = new DictionaryUnmarshaller<string, string, StringUnmarshaller, StringUnmarshaller>(StringUnmarshaller.Instance, StringUnmarshaller.Instance); unmarshalledObject.Options = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("secretOptions", targetDepth)) { var unmarshaller = new ListUnmarshaller<Secret, SecretUnmarshaller>(SecretUnmarshaller.Instance); unmarshalledObject.SecretOptions = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static LogConfigurationUnmarshaller _instance = new LogConfigurationUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static LogConfigurationUnmarshaller 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 batch-2016-08-10.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.Batch.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Batch.Model.Internal.MarshallTransformations { /// <summary> /// MountPoint Marshaller /// </summary> public class MountPointMarshaller : IRequestMarshaller<MountPoint, 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(MountPoint requestObject, JsonMarshallerContext context) { if(requestObject.IsSetContainerPath()) { context.Writer.WritePropertyName("containerPath"); context.Writer.Write(requestObject.ContainerPath); } if(requestObject.IsSetReadOnly()) { context.Writer.WritePropertyName("readOnly"); context.Writer.Write(requestObject.ReadOnly); } if(requestObject.IsSetSourceVolume()) { context.Writer.WritePropertyName("sourceVolume"); context.Writer.Write(requestObject.SourceVolume); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static MountPointMarshaller Instance = new MountPointMarshaller(); } }
74
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 batch-2016-08-10.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.Batch.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Batch.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for MountPoint Object /// </summary> public class MountPointUnmarshaller : IUnmarshaller<MountPoint, XmlUnmarshallerContext>, IUnmarshaller<MountPoint, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> MountPoint IUnmarshaller<MountPoint, 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 MountPoint Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; MountPoint unmarshalledObject = new MountPoint(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("containerPath", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.ContainerPath = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("readOnly", targetDepth)) { var unmarshaller = BoolUnmarshaller.Instance; unmarshalledObject.ReadOnly = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("sourceVolume", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.SourceVolume = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static MountPointUnmarshaller _instance = new MountPointUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static MountPointUnmarshaller 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 batch-2016-08-10.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.Batch.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Batch.Model.Internal.MarshallTransformations { /// <summary> /// NetworkConfiguration Marshaller /// </summary> public class NetworkConfigurationMarshaller : IRequestMarshaller<NetworkConfiguration, 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(NetworkConfiguration requestObject, JsonMarshallerContext context) { if(requestObject.IsSetAssignPublicIp()) { context.Writer.WritePropertyName("assignPublicIp"); context.Writer.Write(requestObject.AssignPublicIp); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static NetworkConfigurationMarshaller Instance = new NetworkConfigurationMarshaller(); } }
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 batch-2016-08-10.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.Batch.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Batch.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for NetworkConfiguration Object /// </summary> public class NetworkConfigurationUnmarshaller : IUnmarshaller<NetworkConfiguration, XmlUnmarshallerContext>, IUnmarshaller<NetworkConfiguration, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> NetworkConfiguration IUnmarshaller<NetworkConfiguration, 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 NetworkConfiguration Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; NetworkConfiguration unmarshalledObject = new NetworkConfiguration(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("assignPublicIp", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.AssignPublicIp = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static NetworkConfigurationUnmarshaller _instance = new NetworkConfigurationUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static NetworkConfigurationUnmarshaller 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 batch-2016-08-10.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.Batch.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Batch.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for NetworkInterface Object /// </summary> public class NetworkInterfaceUnmarshaller : IUnmarshaller<NetworkInterface, XmlUnmarshallerContext>, IUnmarshaller<NetworkInterface, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> NetworkInterface IUnmarshaller<NetworkInterface, 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 NetworkInterface Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; NetworkInterface unmarshalledObject = new NetworkInterface(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("attachmentId", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.AttachmentId = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("ipv6Address", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Ipv6Address = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("privateIpv4Address", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.PrivateIpv4Address = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static NetworkInterfaceUnmarshaller _instance = new NetworkInterfaceUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static NetworkInterfaceUnmarshaller 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 batch-2016-08-10.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.Batch.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Batch.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for NodeDetails Object /// </summary> public class NodeDetailsUnmarshaller : IUnmarshaller<NodeDetails, XmlUnmarshallerContext>, IUnmarshaller<NodeDetails, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> NodeDetails IUnmarshaller<NodeDetails, 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 NodeDetails Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; NodeDetails unmarshalledObject = new NodeDetails(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("isMainNode", targetDepth)) { var unmarshaller = BoolUnmarshaller.Instance; unmarshalledObject.IsMainNode = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("nodeIndex", targetDepth)) { var unmarshaller = IntUnmarshaller.Instance; unmarshalledObject.NodeIndex = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static NodeDetailsUnmarshaller _instance = new NodeDetailsUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static NodeDetailsUnmarshaller 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 batch-2016-08-10.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.Batch.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Batch.Model.Internal.MarshallTransformations { /// <summary> /// NodeOverrides Marshaller /// </summary> public class NodeOverridesMarshaller : IRequestMarshaller<NodeOverrides, 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(NodeOverrides requestObject, JsonMarshallerContext context) { if(requestObject.IsSetNodePropertyOverrides()) { context.Writer.WritePropertyName("nodePropertyOverrides"); context.Writer.WriteArrayStart(); foreach(var requestObjectNodePropertyOverridesListValue in requestObject.NodePropertyOverrides) { context.Writer.WriteObjectStart(); var marshaller = NodePropertyOverrideMarshaller.Instance; marshaller.Marshall(requestObjectNodePropertyOverridesListValue, context); context.Writer.WriteObjectEnd(); } context.Writer.WriteArrayEnd(); } if(requestObject.IsSetNumNodes()) { context.Writer.WritePropertyName("numNodes"); context.Writer.Write(requestObject.NumNodes); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static NodeOverridesMarshaller Instance = new NodeOverridesMarshaller(); } }
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 batch-2016-08-10.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.Batch.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Batch.Model.Internal.MarshallTransformations { /// <summary> /// NodeProperties Marshaller /// </summary> public class NodePropertiesMarshaller : IRequestMarshaller<NodeProperties, 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(NodeProperties requestObject, JsonMarshallerContext context) { if(requestObject.IsSetMainNode()) { context.Writer.WritePropertyName("mainNode"); context.Writer.Write(requestObject.MainNode); } if(requestObject.IsSetNodeRangeProperties()) { context.Writer.WritePropertyName("nodeRangeProperties"); context.Writer.WriteArrayStart(); foreach(var requestObjectNodeRangePropertiesListValue in requestObject.NodeRangeProperties) { context.Writer.WriteObjectStart(); var marshaller = NodeRangePropertyMarshaller.Instance; marshaller.Marshall(requestObjectNodeRangePropertiesListValue, context); context.Writer.WriteObjectEnd(); } context.Writer.WriteArrayEnd(); } if(requestObject.IsSetNumNodes()) { context.Writer.WritePropertyName("numNodes"); context.Writer.Write(requestObject.NumNodes); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static NodePropertiesMarshaller Instance = new NodePropertiesMarshaller(); } }
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 batch-2016-08-10.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.Batch.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Batch.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for NodePropertiesSummary Object /// </summary> public class NodePropertiesSummaryUnmarshaller : IUnmarshaller<NodePropertiesSummary, XmlUnmarshallerContext>, IUnmarshaller<NodePropertiesSummary, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> NodePropertiesSummary IUnmarshaller<NodePropertiesSummary, 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 NodePropertiesSummary Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; NodePropertiesSummary unmarshalledObject = new NodePropertiesSummary(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("isMainNode", targetDepth)) { var unmarshaller = BoolUnmarshaller.Instance; unmarshalledObject.IsMainNode = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("nodeIndex", targetDepth)) { var unmarshaller = IntUnmarshaller.Instance; unmarshalledObject.NodeIndex = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("numNodes", targetDepth)) { var unmarshaller = IntUnmarshaller.Instance; unmarshalledObject.NumNodes = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static NodePropertiesSummaryUnmarshaller _instance = new NodePropertiesSummaryUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static NodePropertiesSummaryUnmarshaller 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 batch-2016-08-10.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.Batch.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Batch.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for NodeProperties Object /// </summary> public class NodePropertiesUnmarshaller : IUnmarshaller<NodeProperties, XmlUnmarshallerContext>, IUnmarshaller<NodeProperties, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> NodeProperties IUnmarshaller<NodeProperties, 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 NodeProperties Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; NodeProperties unmarshalledObject = new NodeProperties(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("mainNode", targetDepth)) { var unmarshaller = IntUnmarshaller.Instance; unmarshalledObject.MainNode = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("nodeRangeProperties", targetDepth)) { var unmarshaller = new ListUnmarshaller<NodeRangeProperty, NodeRangePropertyUnmarshaller>(NodeRangePropertyUnmarshaller.Instance); unmarshalledObject.NodeRangeProperties = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("numNodes", targetDepth)) { var unmarshaller = IntUnmarshaller.Instance; unmarshalledObject.NumNodes = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static NodePropertiesUnmarshaller _instance = new NodePropertiesUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static NodePropertiesUnmarshaller 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 batch-2016-08-10.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.Batch.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Batch.Model.Internal.MarshallTransformations { /// <summary> /// NodePropertyOverride Marshaller /// </summary> public class NodePropertyOverrideMarshaller : IRequestMarshaller<NodePropertyOverride, 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(NodePropertyOverride requestObject, JsonMarshallerContext context) { if(requestObject.IsSetContainerOverrides()) { context.Writer.WritePropertyName("containerOverrides"); context.Writer.WriteObjectStart(); var marshaller = ContainerOverridesMarshaller.Instance; marshaller.Marshall(requestObject.ContainerOverrides, context); context.Writer.WriteObjectEnd(); } if(requestObject.IsSetTargetNodes()) { context.Writer.WritePropertyName("targetNodes"); context.Writer.Write(requestObject.TargetNodes); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static NodePropertyOverrideMarshaller Instance = new NodePropertyOverrideMarshaller(); } }
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 batch-2016-08-10.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.Batch.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Batch.Model.Internal.MarshallTransformations { /// <summary> /// NodeRangeProperty Marshaller /// </summary> public class NodeRangePropertyMarshaller : IRequestMarshaller<NodeRangeProperty, 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(NodeRangeProperty requestObject, JsonMarshallerContext context) { if(requestObject.IsSetContainer()) { context.Writer.WritePropertyName("container"); context.Writer.WriteObjectStart(); var marshaller = ContainerPropertiesMarshaller.Instance; marshaller.Marshall(requestObject.Container, context); context.Writer.WriteObjectEnd(); } if(requestObject.IsSetTargetNodes()) { context.Writer.WritePropertyName("targetNodes"); context.Writer.Write(requestObject.TargetNodes); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static NodeRangePropertyMarshaller Instance = new NodeRangePropertyMarshaller(); } }
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 batch-2016-08-10.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.Batch.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Batch.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for NodeRangeProperty Object /// </summary> public class NodeRangePropertyUnmarshaller : IUnmarshaller<NodeRangeProperty, XmlUnmarshallerContext>, IUnmarshaller<NodeRangeProperty, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> NodeRangeProperty IUnmarshaller<NodeRangeProperty, 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 NodeRangeProperty Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; NodeRangeProperty unmarshalledObject = new NodeRangeProperty(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("container", targetDepth)) { var unmarshaller = ContainerPropertiesUnmarshaller.Instance; unmarshalledObject.Container = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("targetNodes", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.TargetNodes = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static NodeRangePropertyUnmarshaller _instance = new NodeRangePropertyUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static NodeRangePropertyUnmarshaller 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 batch-2016-08-10.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.Batch.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Batch.Model.Internal.MarshallTransformations { /// <summary> /// RegisterJobDefinition Request Marshaller /// </summary> public class RegisterJobDefinitionRequestMarshaller : IMarshaller<IRequest, RegisterJobDefinitionRequest> , 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((RegisterJobDefinitionRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(RegisterJobDefinitionRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.Batch"); request.Headers["Content-Type"] = "application/json"; request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2016-08-10"; request.HttpMethod = "POST"; request.ResourcePath = "/v1/registerjobdefinition"; using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) { JsonWriter writer = new JsonWriter(stringWriter); writer.WriteObjectStart(); var context = new JsonMarshallerContext(request, writer); if(publicRequest.IsSetContainerProperties()) { context.Writer.WritePropertyName("containerProperties"); context.Writer.WriteObjectStart(); var marshaller = ContainerPropertiesMarshaller.Instance; marshaller.Marshall(publicRequest.ContainerProperties, context); context.Writer.WriteObjectEnd(); } if(publicRequest.IsSetEksProperties()) { context.Writer.WritePropertyName("eksProperties"); context.Writer.WriteObjectStart(); var marshaller = EksPropertiesMarshaller.Instance; marshaller.Marshall(publicRequest.EksProperties, context); context.Writer.WriteObjectEnd(); } if(publicRequest.IsSetJobDefinitionName()) { context.Writer.WritePropertyName("jobDefinitionName"); context.Writer.Write(publicRequest.JobDefinitionName); } if(publicRequest.IsSetNodeProperties()) { context.Writer.WritePropertyName("nodeProperties"); context.Writer.WriteObjectStart(); var marshaller = NodePropertiesMarshaller.Instance; marshaller.Marshall(publicRequest.NodeProperties, context); context.Writer.WriteObjectEnd(); } if(publicRequest.IsSetParameters()) { context.Writer.WritePropertyName("parameters"); context.Writer.WriteObjectStart(); foreach (var publicRequestParametersKvp in publicRequest.Parameters) { context.Writer.WritePropertyName(publicRequestParametersKvp.Key); var publicRequestParametersValue = publicRequestParametersKvp.Value; context.Writer.Write(publicRequestParametersValue); } context.Writer.WriteObjectEnd(); } if(publicRequest.IsSetPlatformCapabilities()) { context.Writer.WritePropertyName("platformCapabilities"); context.Writer.WriteArrayStart(); foreach(var publicRequestPlatformCapabilitiesListValue in publicRequest.PlatformCapabilities) { context.Writer.Write(publicRequestPlatformCapabilitiesListValue); } context.Writer.WriteArrayEnd(); } if(publicRequest.IsSetPropagateTags()) { context.Writer.WritePropertyName("propagateTags"); context.Writer.Write(publicRequest.PropagateTags); } if(publicRequest.IsSetRetryStrategy()) { context.Writer.WritePropertyName("retryStrategy"); context.Writer.WriteObjectStart(); var marshaller = RetryStrategyMarshaller.Instance; marshaller.Marshall(publicRequest.RetryStrategy, context); context.Writer.WriteObjectEnd(); } if(publicRequest.IsSetSchedulingPriority()) { context.Writer.WritePropertyName("schedulingPriority"); context.Writer.Write(publicRequest.SchedulingPriority); } if(publicRequest.IsSetTags()) { context.Writer.WritePropertyName("tags"); context.Writer.WriteObjectStart(); foreach (var publicRequestTagsKvp in publicRequest.Tags) { context.Writer.WritePropertyName(publicRequestTagsKvp.Key); var publicRequestTagsValue = publicRequestTagsKvp.Value; context.Writer.Write(publicRequestTagsValue); } context.Writer.WriteObjectEnd(); } if(publicRequest.IsSetTimeout()) { context.Writer.WritePropertyName("timeout"); context.Writer.WriteObjectStart(); var marshaller = JobTimeoutMarshaller.Instance; marshaller.Marshall(publicRequest.Timeout, context); context.Writer.WriteObjectEnd(); } if(publicRequest.IsSetType()) { context.Writer.WritePropertyName("type"); context.Writer.Write(publicRequest.Type); } writer.WriteObjectEnd(); string snippet = stringWriter.ToString(); request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); } return request; } private static RegisterJobDefinitionRequestMarshaller _instance = new RegisterJobDefinitionRequestMarshaller(); internal static RegisterJobDefinitionRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static RegisterJobDefinitionRequestMarshaller Instance { get { return _instance; } } } }
213
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 batch-2016-08-10.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.Batch.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Batch.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for RegisterJobDefinition operation /// </summary> public class RegisterJobDefinitionResponseUnmarshaller : 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) { RegisterJobDefinitionResponse response = new RegisterJobDefinitionResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("jobDefinitionArn", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.JobDefinitionArn = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("jobDefinitionName", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.JobDefinitionName = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("revision", targetDepth)) { var unmarshaller = IntUnmarshaller.Instance; response.Revision = unmarshaller.Unmarshall(context); continue; } } return response; } /// <summary> /// Unmarshaller error response to exception. /// </summary> /// <param name="context"></param> /// <param name="innerException"></param> /// <param name="statusCode"></param> /// <returns></returns> public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) { var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context); errorResponse.InnerException = innerException; errorResponse.StatusCode = statusCode; var responseBodyBytes = context.GetResponseBodyBytes(); using (var streamCopy = new MemoryStream(responseBodyBytes)) using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null)) { if (errorResponse.Code != null && errorResponse.Code.Equals("ClientException")) { return ClientExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ServerException")) { return ServerExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonBatchException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static RegisterJobDefinitionResponseUnmarshaller _instance = new RegisterJobDefinitionResponseUnmarshaller(); internal static RegisterJobDefinitionResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static RegisterJobDefinitionResponseUnmarshaller Instance { get { return _instance; } } } }
126