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 cloudformation-2010-05-15.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.CloudFormation.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; namespace Amazon.CloudFormation.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for GetStackPolicy operation /// </summary> public class GetStackPolicyResponseUnmarshaller : XmlResponseUnmarshaller { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(XmlUnmarshallerContext context) { GetStackPolicyResponse response = new GetStackPolicyResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.IsStartElement) { if(context.TestExpression("GetStackPolicyResult", 2)) { UnmarshallResult(context, response); continue; } if (context.TestExpression("ResponseMetadata", 2)) { response.ResponseMetadata = ResponseMetadataUnmarshaller.Instance.Unmarshall(context); } } } return response; } private static void UnmarshallResult(XmlUnmarshallerContext context, GetStackPolicyResponse response) { int originalDepth = context.CurrentDepth; int targetDepth = originalDepth + 1; if (context.IsStartOfDocument) targetDepth += 2; while (context.ReadAtDepth(originalDepth)) { if (context.IsStartElement || context.IsAttribute) { if (context.TestExpression("StackPolicyBody", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.StackPolicyBody = unmarshaller.Unmarshall(context); continue; } } } return; } /// <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(XmlUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) { ErrorResponse errorResponse = ErrorResponseUnmarshaller.GetInstance().Unmarshall(context); errorResponse.InnerException = innerException; errorResponse.StatusCode = statusCode; var responseBodyBytes = context.GetResponseBodyBytes(); using (var streamCopy = new MemoryStream(responseBodyBytes)) using (var contextCopy = new XmlUnmarshallerContext(streamCopy, false, null)) { } return new AmazonCloudFormationException(errorResponse.Message, innerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, statusCode); } private static GetStackPolicyResponseUnmarshaller _instance = new GetStackPolicyResponseUnmarshaller(); internal static GetStackPolicyResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static GetStackPolicyResponseUnmarshaller Instance { get { return _instance; } } } }
137
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudformation-2010-05-15.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.CloudFormation.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; namespace Amazon.CloudFormation.Model.Internal.MarshallTransformations { /// <summary> /// GetTemplate Request Marshaller /// </summary> public class GetTemplateRequestMarshaller : IMarshaller<IRequest, GetTemplateRequest> , 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((GetTemplateRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(GetTemplateRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.CloudFormation"); request.Parameters.Add("Action", "GetTemplate"); request.Parameters.Add("Version", "2010-05-15"); if(publicRequest != null) { if(publicRequest.IsSetChangeSetName()) { request.Parameters.Add("ChangeSetName", StringUtils.FromString(publicRequest.ChangeSetName)); } if(publicRequest.IsSetStackName()) { request.Parameters.Add("StackName", StringUtils.FromString(publicRequest.StackName)); } if(publicRequest.IsSetTemplateStage()) { request.Parameters.Add("TemplateStage", StringUtils.FromString(publicRequest.TemplateStage)); } } return request; } private static GetTemplateRequestMarshaller _instance = new GetTemplateRequestMarshaller(); internal static GetTemplateRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static GetTemplateRequestMarshaller Instance { get { return _instance; } } } }
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 cloudformation-2010-05-15.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.CloudFormation.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; namespace Amazon.CloudFormation.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for GetTemplate operation /// </summary> public class GetTemplateResponseUnmarshaller : XmlResponseUnmarshaller { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(XmlUnmarshallerContext context) { GetTemplateResponse response = new GetTemplateResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.IsStartElement) { if(context.TestExpression("GetTemplateResult", 2)) { UnmarshallResult(context, response); continue; } if (context.TestExpression("ResponseMetadata", 2)) { response.ResponseMetadata = ResponseMetadataUnmarshaller.Instance.Unmarshall(context); } } } return response; } private static void UnmarshallResult(XmlUnmarshallerContext context, GetTemplateResponse response) { int originalDepth = context.CurrentDepth; int targetDepth = originalDepth + 1; if (context.IsStartOfDocument) targetDepth += 2; while (context.ReadAtDepth(originalDepth)) { if (context.IsStartElement || context.IsAttribute) { if (context.TestExpression("StagesAvailable/member", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; var item = unmarshaller.Unmarshall(context); response.StagesAvailable.Add(item); continue; } if (context.TestExpression("TemplateBody", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.TemplateBody = unmarshaller.Unmarshall(context); continue; } } } return; } /// <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(XmlUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) { ErrorResponse errorResponse = ErrorResponseUnmarshaller.GetInstance().Unmarshall(context); errorResponse.InnerException = innerException; errorResponse.StatusCode = statusCode; var responseBodyBytes = context.GetResponseBodyBytes(); using (var streamCopy = new MemoryStream(responseBodyBytes)) using (var contextCopy = new XmlUnmarshallerContext(streamCopy, false, null)) { if (errorResponse.Code != null && errorResponse.Code.Equals("ChangeSetNotFound")) { return ChangeSetNotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonCloudFormationException(errorResponse.Message, innerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, statusCode); } private static GetTemplateResponseUnmarshaller _instance = new GetTemplateResponseUnmarshaller(); internal static GetTemplateResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static GetTemplateResponseUnmarshaller Instance { get { return _instance; } } } }
148
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudformation-2010-05-15.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.CloudFormation.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; namespace Amazon.CloudFormation.Model.Internal.MarshallTransformations { /// <summary> /// GetTemplateSummary Request Marshaller /// </summary> public class GetTemplateSummaryRequestMarshaller : IMarshaller<IRequest, GetTemplateSummaryRequest> , 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((GetTemplateSummaryRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(GetTemplateSummaryRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.CloudFormation"); request.Parameters.Add("Action", "GetTemplateSummary"); request.Parameters.Add("Version", "2010-05-15"); if(publicRequest != null) { if(publicRequest.IsSetCallAs()) { request.Parameters.Add("CallAs", StringUtils.FromString(publicRequest.CallAs)); } if(publicRequest.IsSetStackName()) { request.Parameters.Add("StackName", StringUtils.FromString(publicRequest.StackName)); } if(publicRequest.IsSetStackSetName()) { request.Parameters.Add("StackSetName", StringUtils.FromString(publicRequest.StackSetName)); } if(publicRequest.IsSetTemplateBody()) { request.Parameters.Add("TemplateBody", StringUtils.FromString(publicRequest.TemplateBody)); } if(publicRequest.IsSetTemplateURL()) { request.Parameters.Add("TemplateURL", StringUtils.FromString(publicRequest.TemplateURL)); } } return request; } private static GetTemplateSummaryRequestMarshaller _instance = new GetTemplateSummaryRequestMarshaller(); internal static GetTemplateSummaryRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static GetTemplateSummaryRequestMarshaller Instance { get { return _instance; } } } }
103
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudformation-2010-05-15.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.CloudFormation.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; namespace Amazon.CloudFormation.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for GetTemplateSummary operation /// </summary> public class GetTemplateSummaryResponseUnmarshaller : XmlResponseUnmarshaller { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(XmlUnmarshallerContext context) { GetTemplateSummaryResponse response = new GetTemplateSummaryResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.IsStartElement) { if(context.TestExpression("GetTemplateSummaryResult", 2)) { UnmarshallResult(context, response); continue; } if (context.TestExpression("ResponseMetadata", 2)) { response.ResponseMetadata = ResponseMetadataUnmarshaller.Instance.Unmarshall(context); } } } return response; } private static void UnmarshallResult(XmlUnmarshallerContext context, GetTemplateSummaryResponse response) { int originalDepth = context.CurrentDepth; int targetDepth = originalDepth + 1; if (context.IsStartOfDocument) targetDepth += 2; while (context.ReadAtDepth(originalDepth)) { if (context.IsStartElement || context.IsAttribute) { if (context.TestExpression("Capabilities/member", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; var item = unmarshaller.Unmarshall(context); response.Capabilities.Add(item); continue; } if (context.TestExpression("CapabilitiesReason", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.CapabilitiesReason = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("DeclaredTransforms/member", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; var item = unmarshaller.Unmarshall(context); response.DeclaredTransforms.Add(item); continue; } if (context.TestExpression("Description", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.Description = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Metadata", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.Metadata = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Parameters/member", targetDepth)) { var unmarshaller = ParameterDeclarationUnmarshaller.Instance; var item = unmarshaller.Unmarshall(context); response.Parameters.Add(item); continue; } if (context.TestExpression("ResourceIdentifierSummaries/member", targetDepth)) { var unmarshaller = ResourceIdentifierSummaryUnmarshaller.Instance; var item = unmarshaller.Unmarshall(context); response.ResourceIdentifierSummaries.Add(item); continue; } if (context.TestExpression("ResourceTypes/member", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; var item = unmarshaller.Unmarshall(context); response.ResourceTypes.Add(item); continue; } if (context.TestExpression("Version", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.Version = unmarshaller.Unmarshall(context); continue; } } } return; } /// <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(XmlUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) { ErrorResponse errorResponse = ErrorResponseUnmarshaller.GetInstance().Unmarshall(context); errorResponse.InnerException = innerException; errorResponse.StatusCode = statusCode; var responseBodyBytes = context.GetResponseBodyBytes(); using (var streamCopy = new MemoryStream(responseBodyBytes)) using (var contextCopy = new XmlUnmarshallerContext(streamCopy, false, null)) { if (errorResponse.Code != null && errorResponse.Code.Equals("StackSetNotFoundException")) { return StackSetNotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonCloudFormationException(errorResponse.Message, innerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, statusCode); } private static GetTemplateSummaryResponseUnmarshaller _instance = new GetTemplateSummaryResponseUnmarshaller(); internal static GetTemplateSummaryResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static GetTemplateSummaryResponseUnmarshaller Instance { get { return _instance; } } } }
194
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudformation-2010-05-15.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.CloudFormation.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; namespace Amazon.CloudFormation.Model.Internal.MarshallTransformations { /// <summary> /// ImportStacksToStackSet Request Marshaller /// </summary> public class ImportStacksToStackSetRequestMarshaller : IMarshaller<IRequest, ImportStacksToStackSetRequest> , 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((ImportStacksToStackSetRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(ImportStacksToStackSetRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.CloudFormation"); request.Parameters.Add("Action", "ImportStacksToStackSet"); request.Parameters.Add("Version", "2010-05-15"); if(publicRequest != null) { if(publicRequest.IsSetCallAs()) { request.Parameters.Add("CallAs", StringUtils.FromString(publicRequest.CallAs)); } if(publicRequest.IsSetOperationId()) { request.Parameters.Add("OperationId", StringUtils.FromString(publicRequest.OperationId)); } else if(!(publicRequest.IsSetOperationId())) { request.Parameters.Add("OperationId", StringUtils.FromString(Guid.NewGuid().ToString())); } if(publicRequest.IsSetOperationPreferences()) { if(publicRequest.OperationPreferences.IsSetFailureToleranceCount()) { request.Parameters.Add("OperationPreferences" + "." + "FailureToleranceCount", StringUtils.FromInt(publicRequest.OperationPreferences.FailureToleranceCount)); } if(publicRequest.OperationPreferences.IsSetFailureTolerancePercentage()) { request.Parameters.Add("OperationPreferences" + "." + "FailureTolerancePercentage", StringUtils.FromInt(publicRequest.OperationPreferences.FailureTolerancePercentage)); } if(publicRequest.OperationPreferences.IsSetMaxConcurrentCount()) { request.Parameters.Add("OperationPreferences" + "." + "MaxConcurrentCount", StringUtils.FromInt(publicRequest.OperationPreferences.MaxConcurrentCount)); } if(publicRequest.OperationPreferences.IsSetMaxConcurrentPercentage()) { request.Parameters.Add("OperationPreferences" + "." + "MaxConcurrentPercentage", StringUtils.FromInt(publicRequest.OperationPreferences.MaxConcurrentPercentage)); } if(publicRequest.OperationPreferences.IsSetRegionConcurrencyType()) { request.Parameters.Add("OperationPreferences" + "." + "RegionConcurrencyType", StringUtils.FromString(publicRequest.OperationPreferences.RegionConcurrencyType)); } if(publicRequest.OperationPreferences.IsSetRegionOrder()) { int publicRequestOperationPreferenceslistValueIndex = 1; foreach(var publicRequestOperationPreferenceslistValue in publicRequest.OperationPreferences.RegionOrder) { request.Parameters.Add("OperationPreferences" + "." + "RegionOrder" + "." + "member" + "." + publicRequestOperationPreferenceslistValueIndex, StringUtils.FromString(publicRequestOperationPreferenceslistValue)); publicRequestOperationPreferenceslistValueIndex++; } } } if(publicRequest.IsSetOrganizationalUnitIds()) { int publicRequestlistValueIndex = 1; foreach(var publicRequestlistValue in publicRequest.OrganizationalUnitIds) { request.Parameters.Add("OrganizationalUnitIds" + "." + "member" + "." + publicRequestlistValueIndex, StringUtils.FromString(publicRequestlistValue)); publicRequestlistValueIndex++; } } if(publicRequest.IsSetStackIds()) { int publicRequestlistValueIndex = 1; foreach(var publicRequestlistValue in publicRequest.StackIds) { request.Parameters.Add("StackIds" + "." + "member" + "." + publicRequestlistValueIndex, StringUtils.FromString(publicRequestlistValue)); publicRequestlistValueIndex++; } } if(publicRequest.IsSetStackIdsUrl()) { request.Parameters.Add("StackIdsUrl", StringUtils.FromString(publicRequest.StackIdsUrl)); } if(publicRequest.IsSetStackSetName()) { request.Parameters.Add("StackSetName", StringUtils.FromString(publicRequest.StackSetName)); } } return request; } private static ImportStacksToStackSetRequestMarshaller _instance = new ImportStacksToStackSetRequestMarshaller(); internal static ImportStacksToStackSetRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static ImportStacksToStackSetRequestMarshaller Instance { get { return _instance; } } } }
153
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudformation-2010-05-15.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.CloudFormation.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; namespace Amazon.CloudFormation.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for ImportStacksToStackSet operation /// </summary> public class ImportStacksToStackSetResponseUnmarshaller : XmlResponseUnmarshaller { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(XmlUnmarshallerContext context) { ImportStacksToStackSetResponse response = new ImportStacksToStackSetResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.IsStartElement) { if(context.TestExpression("ImportStacksToStackSetResult", 2)) { UnmarshallResult(context, response); continue; } if (context.TestExpression("ResponseMetadata", 2)) { response.ResponseMetadata = ResponseMetadataUnmarshaller.Instance.Unmarshall(context); } } } return response; } private static void UnmarshallResult(XmlUnmarshallerContext context, ImportStacksToStackSetResponse response) { int originalDepth = context.CurrentDepth; int targetDepth = originalDepth + 1; if (context.IsStartOfDocument) targetDepth += 2; while (context.ReadAtDepth(originalDepth)) { if (context.IsStartElement || context.IsAttribute) { if (context.TestExpression("OperationId", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.OperationId = unmarshaller.Unmarshall(context); continue; } } } return; } /// <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(XmlUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) { ErrorResponse errorResponse = ErrorResponseUnmarshaller.GetInstance().Unmarshall(context); errorResponse.InnerException = innerException; errorResponse.StatusCode = statusCode; var responseBodyBytes = context.GetResponseBodyBytes(); using (var streamCopy = new MemoryStream(responseBodyBytes)) using (var contextCopy = new XmlUnmarshallerContext(streamCopy, false, null)) { if (errorResponse.Code != null && errorResponse.Code.Equals("InvalidOperationException")) { return InvalidOperationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("LimitExceededException")) { return LimitExceededExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("OperationIdAlreadyExistsException")) { return OperationIdAlreadyExistsExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("OperationInProgressException")) { return OperationInProgressExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("StackNotFoundException")) { return StackNotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("StackSetNotFoundException")) { return StackSetNotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("StaleRequestException")) { return StaleRequestExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonCloudFormationException(errorResponse.Message, innerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, statusCode); } private static ImportStacksToStackSetResponseUnmarshaller _instance = new ImportStacksToStackSetResponseUnmarshaller(); internal static ImportStacksToStackSetResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static ImportStacksToStackSetResponseUnmarshaller Instance { get { return _instance; } } } }
165
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudformation-2010-05-15.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.CloudFormation.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; namespace Amazon.CloudFormation.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for InsufficientCapabilitiesException operation /// </summary> public class InsufficientCapabilitiesExceptionUnmarshaller : IErrorResponseUnmarshaller<InsufficientCapabilitiesException, XmlUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public InsufficientCapabilitiesException Unmarshall(XmlUnmarshallerContext context) { return this.Unmarshall(context, new Amazon.Runtime.Internal.ErrorResponse()); } /// <summary> /// Unmarshaller error response to exception. /// </summary> /// <param name="context"></param> /// <param name="errorResponse"></param> /// <returns></returns> public InsufficientCapabilitiesException Unmarshall(XmlUnmarshallerContext context, Amazon.Runtime.Internal.ErrorResponse errorResponse) { InsufficientCapabilitiesException response = new InsufficientCapabilitiesException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); int originalDepth = context.CurrentDepth; int targetDepth = originalDepth + 1; if (context.IsStartOfDocument) targetDepth += 2; while (context.ReadAtDepth(originalDepth)) { if (context.IsStartElement || context.IsAttribute) { } } return response; } private static InsufficientCapabilitiesExceptionUnmarshaller _instance = new InsufficientCapabilitiesExceptionUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static InsufficientCapabilitiesExceptionUnmarshaller Instance { get { return _instance; } } } }
88
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudformation-2010-05-15.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.CloudFormation.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; namespace Amazon.CloudFormation.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for InvalidChangeSetStatusException operation /// </summary> public class InvalidChangeSetStatusExceptionUnmarshaller : IErrorResponseUnmarshaller<InvalidChangeSetStatusException, XmlUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public InvalidChangeSetStatusException Unmarshall(XmlUnmarshallerContext context) { return this.Unmarshall(context, new Amazon.Runtime.Internal.ErrorResponse()); } /// <summary> /// Unmarshaller error response to exception. /// </summary> /// <param name="context"></param> /// <param name="errorResponse"></param> /// <returns></returns> public InvalidChangeSetStatusException Unmarshall(XmlUnmarshallerContext context, Amazon.Runtime.Internal.ErrorResponse errorResponse) { InvalidChangeSetStatusException response = new InvalidChangeSetStatusException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); int originalDepth = context.CurrentDepth; int targetDepth = originalDepth + 1; if (context.IsStartOfDocument) targetDepth += 2; while (context.ReadAtDepth(originalDepth)) { if (context.IsStartElement || context.IsAttribute) { } } return response; } private static InvalidChangeSetStatusExceptionUnmarshaller _instance = new InvalidChangeSetStatusExceptionUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static InvalidChangeSetStatusExceptionUnmarshaller Instance { get { return _instance; } } } }
88
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudformation-2010-05-15.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.CloudFormation.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; namespace Amazon.CloudFormation.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for InvalidOperationException operation /// </summary> public class InvalidOperationExceptionUnmarshaller : IErrorResponseUnmarshaller<InvalidOperationException, XmlUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public InvalidOperationException Unmarshall(XmlUnmarshallerContext context) { return this.Unmarshall(context, new Amazon.Runtime.Internal.ErrorResponse()); } /// <summary> /// Unmarshaller error response to exception. /// </summary> /// <param name="context"></param> /// <param name="errorResponse"></param> /// <returns></returns> public InvalidOperationException Unmarshall(XmlUnmarshallerContext context, Amazon.Runtime.Internal.ErrorResponse errorResponse) { InvalidOperationException response = new InvalidOperationException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); int originalDepth = context.CurrentDepth; int targetDepth = originalDepth + 1; if (context.IsStartOfDocument) targetDepth += 2; while (context.ReadAtDepth(originalDepth)) { if (context.IsStartElement || context.IsAttribute) { } } return response; } private static InvalidOperationExceptionUnmarshaller _instance = new InvalidOperationExceptionUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static InvalidOperationExceptionUnmarshaller Instance { get { return _instance; } } } }
88
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudformation-2010-05-15.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.CloudFormation.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; namespace Amazon.CloudFormation.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for InvalidStateTransitionException operation /// </summary> public class InvalidStateTransitionExceptionUnmarshaller : IErrorResponseUnmarshaller<InvalidStateTransitionException, XmlUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public InvalidStateTransitionException Unmarshall(XmlUnmarshallerContext context) { return this.Unmarshall(context, new Amazon.Runtime.Internal.ErrorResponse()); } /// <summary> /// Unmarshaller error response to exception. /// </summary> /// <param name="context"></param> /// <param name="errorResponse"></param> /// <returns></returns> public InvalidStateTransitionException Unmarshall(XmlUnmarshallerContext context, Amazon.Runtime.Internal.ErrorResponse errorResponse) { InvalidStateTransitionException response = new InvalidStateTransitionException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); int originalDepth = context.CurrentDepth; int targetDepth = originalDepth + 1; if (context.IsStartOfDocument) targetDepth += 2; while (context.ReadAtDepth(originalDepth)) { if (context.IsStartElement || context.IsAttribute) { } } return response; } private static InvalidStateTransitionExceptionUnmarshaller _instance = new InvalidStateTransitionExceptionUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static InvalidStateTransitionExceptionUnmarshaller Instance { get { return _instance; } } } }
88
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudformation-2010-05-15.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.CloudFormation.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; namespace Amazon.CloudFormation.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for LimitExceededException operation /// </summary> public class LimitExceededExceptionUnmarshaller : IErrorResponseUnmarshaller<LimitExceededException, XmlUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public LimitExceededException Unmarshall(XmlUnmarshallerContext context) { return this.Unmarshall(context, new Amazon.Runtime.Internal.ErrorResponse()); } /// <summary> /// Unmarshaller error response to exception. /// </summary> /// <param name="context"></param> /// <param name="errorResponse"></param> /// <returns></returns> public LimitExceededException Unmarshall(XmlUnmarshallerContext context, Amazon.Runtime.Internal.ErrorResponse errorResponse) { LimitExceededException response = new LimitExceededException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); int originalDepth = context.CurrentDepth; int targetDepth = originalDepth + 1; if (context.IsStartOfDocument) targetDepth += 2; while (context.ReadAtDepth(originalDepth)) { if (context.IsStartElement || context.IsAttribute) { } } return response; } private static LimitExceededExceptionUnmarshaller _instance = new LimitExceededExceptionUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static LimitExceededExceptionUnmarshaller Instance { get { return _instance; } } } }
88
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudformation-2010-05-15.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.CloudFormation.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; namespace Amazon.CloudFormation.Model.Internal.MarshallTransformations { /// <summary> /// ListChangeSets Request Marshaller /// </summary> public class ListChangeSetsRequestMarshaller : IMarshaller<IRequest, ListChangeSetsRequest> , 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((ListChangeSetsRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(ListChangeSetsRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.CloudFormation"); request.Parameters.Add("Action", "ListChangeSets"); request.Parameters.Add("Version", "2010-05-15"); if(publicRequest != null) { if(publicRequest.IsSetNextToken()) { request.Parameters.Add("NextToken", StringUtils.FromString(publicRequest.NextToken)); } if(publicRequest.IsSetStackName()) { request.Parameters.Add("StackName", StringUtils.FromString(publicRequest.StackName)); } } return request; } private static ListChangeSetsRequestMarshaller _instance = new ListChangeSetsRequestMarshaller(); internal static ListChangeSetsRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static ListChangeSetsRequestMarshaller Instance { get { return _instance; } } } }
91
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudformation-2010-05-15.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.CloudFormation.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; namespace Amazon.CloudFormation.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for ListChangeSets operation /// </summary> public class ListChangeSetsResponseUnmarshaller : XmlResponseUnmarshaller { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(XmlUnmarshallerContext context) { ListChangeSetsResponse response = new ListChangeSetsResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.IsStartElement) { if(context.TestExpression("ListChangeSetsResult", 2)) { UnmarshallResult(context, response); continue; } if (context.TestExpression("ResponseMetadata", 2)) { response.ResponseMetadata = ResponseMetadataUnmarshaller.Instance.Unmarshall(context); } } } return response; } private static void UnmarshallResult(XmlUnmarshallerContext context, ListChangeSetsResponse response) { int originalDepth = context.CurrentDepth; int targetDepth = originalDepth + 1; if (context.IsStartOfDocument) targetDepth += 2; while (context.ReadAtDepth(originalDepth)) { if (context.IsStartElement || context.IsAttribute) { if (context.TestExpression("NextToken", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.NextToken = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Summaries/member", targetDepth)) { var unmarshaller = ChangeSetSummaryUnmarshaller.Instance; var item = unmarshaller.Unmarshall(context); response.Summaries.Add(item); continue; } } } return; } /// <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(XmlUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) { ErrorResponse errorResponse = ErrorResponseUnmarshaller.GetInstance().Unmarshall(context); errorResponse.InnerException = innerException; errorResponse.StatusCode = statusCode; var responseBodyBytes = context.GetResponseBodyBytes(); using (var streamCopy = new MemoryStream(responseBodyBytes)) using (var contextCopy = new XmlUnmarshallerContext(streamCopy, false, null)) { } return new AmazonCloudFormationException(errorResponse.Message, innerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, statusCode); } private static ListChangeSetsResponseUnmarshaller _instance = new ListChangeSetsResponseUnmarshaller(); internal static ListChangeSetsResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static ListChangeSetsResponseUnmarshaller Instance { get { return _instance; } } } }
144
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudformation-2010-05-15.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.CloudFormation.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; namespace Amazon.CloudFormation.Model.Internal.MarshallTransformations { /// <summary> /// ListExports Request Marshaller /// </summary> public class ListExportsRequestMarshaller : IMarshaller<IRequest, ListExportsRequest> , 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((ListExportsRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(ListExportsRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.CloudFormation"); request.Parameters.Add("Action", "ListExports"); request.Parameters.Add("Version", "2010-05-15"); if(publicRequest != null) { if(publicRequest.IsSetNextToken()) { request.Parameters.Add("NextToken", StringUtils.FromString(publicRequest.NextToken)); } } return request; } private static ListExportsRequestMarshaller _instance = new ListExportsRequestMarshaller(); internal static ListExportsRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static ListExportsRequestMarshaller 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 cloudformation-2010-05-15.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.CloudFormation.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; namespace Amazon.CloudFormation.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for ListExports operation /// </summary> public class ListExportsResponseUnmarshaller : XmlResponseUnmarshaller { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(XmlUnmarshallerContext context) { ListExportsResponse response = new ListExportsResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.IsStartElement) { if(context.TestExpression("ListExportsResult", 2)) { UnmarshallResult(context, response); continue; } if (context.TestExpression("ResponseMetadata", 2)) { response.ResponseMetadata = ResponseMetadataUnmarshaller.Instance.Unmarshall(context); } } } return response; } private static void UnmarshallResult(XmlUnmarshallerContext context, ListExportsResponse response) { int originalDepth = context.CurrentDepth; int targetDepth = originalDepth + 1; if (context.IsStartOfDocument) targetDepth += 2; while (context.ReadAtDepth(originalDepth)) { if (context.IsStartElement || context.IsAttribute) { if (context.TestExpression("Exports/member", targetDepth)) { var unmarshaller = ExportUnmarshaller.Instance; var item = unmarshaller.Unmarshall(context); response.Exports.Add(item); continue; } if (context.TestExpression("NextToken", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.NextToken = unmarshaller.Unmarshall(context); continue; } } } return; } /// <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(XmlUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) { ErrorResponse errorResponse = ErrorResponseUnmarshaller.GetInstance().Unmarshall(context); errorResponse.InnerException = innerException; errorResponse.StatusCode = statusCode; var responseBodyBytes = context.GetResponseBodyBytes(); using (var streamCopy = new MemoryStream(responseBodyBytes)) using (var contextCopy = new XmlUnmarshallerContext(streamCopy, false, null)) { } return new AmazonCloudFormationException(errorResponse.Message, innerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, statusCode); } private static ListExportsResponseUnmarshaller _instance = new ListExportsResponseUnmarshaller(); internal static ListExportsResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static ListExportsResponseUnmarshaller Instance { get { return _instance; } } } }
144
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudformation-2010-05-15.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.CloudFormation.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; namespace Amazon.CloudFormation.Model.Internal.MarshallTransformations { /// <summary> /// ListImports Request Marshaller /// </summary> public class ListImportsRequestMarshaller : IMarshaller<IRequest, ListImportsRequest> , 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((ListImportsRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(ListImportsRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.CloudFormation"); request.Parameters.Add("Action", "ListImports"); request.Parameters.Add("Version", "2010-05-15"); if(publicRequest != null) { if(publicRequest.IsSetExportName()) { request.Parameters.Add("ExportName", StringUtils.FromString(publicRequest.ExportName)); } if(publicRequest.IsSetNextToken()) { request.Parameters.Add("NextToken", StringUtils.FromString(publicRequest.NextToken)); } } return request; } private static ListImportsRequestMarshaller _instance = new ListImportsRequestMarshaller(); internal static ListImportsRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static ListImportsRequestMarshaller Instance { get { return _instance; } } } }
91
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudformation-2010-05-15.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.CloudFormation.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; namespace Amazon.CloudFormation.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for ListImports operation /// </summary> public class ListImportsResponseUnmarshaller : XmlResponseUnmarshaller { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(XmlUnmarshallerContext context) { ListImportsResponse response = new ListImportsResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.IsStartElement) { if(context.TestExpression("ListImportsResult", 2)) { UnmarshallResult(context, response); continue; } if (context.TestExpression("ResponseMetadata", 2)) { response.ResponseMetadata = ResponseMetadataUnmarshaller.Instance.Unmarshall(context); } } } return response; } private static void UnmarshallResult(XmlUnmarshallerContext context, ListImportsResponse response) { int originalDepth = context.CurrentDepth; int targetDepth = originalDepth + 1; if (context.IsStartOfDocument) targetDepth += 2; while (context.ReadAtDepth(originalDepth)) { if (context.IsStartElement || context.IsAttribute) { if (context.TestExpression("Imports/member", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; var item = unmarshaller.Unmarshall(context); response.Imports.Add(item); continue; } if (context.TestExpression("NextToken", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.NextToken = unmarshaller.Unmarshall(context); continue; } } } return; } /// <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(XmlUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) { ErrorResponse errorResponse = ErrorResponseUnmarshaller.GetInstance().Unmarshall(context); errorResponse.InnerException = innerException; errorResponse.StatusCode = statusCode; var responseBodyBytes = context.GetResponseBodyBytes(); using (var streamCopy = new MemoryStream(responseBodyBytes)) using (var contextCopy = new XmlUnmarshallerContext(streamCopy, false, null)) { } return new AmazonCloudFormationException(errorResponse.Message, innerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, statusCode); } private static ListImportsResponseUnmarshaller _instance = new ListImportsResponseUnmarshaller(); internal static ListImportsResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static ListImportsResponseUnmarshaller Instance { get { return _instance; } } } }
144
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudformation-2010-05-15.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.CloudFormation.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; namespace Amazon.CloudFormation.Model.Internal.MarshallTransformations { /// <summary> /// ListStackInstances Request Marshaller /// </summary> public class ListStackInstancesRequestMarshaller : IMarshaller<IRequest, ListStackInstancesRequest> , 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((ListStackInstancesRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(ListStackInstancesRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.CloudFormation"); request.Parameters.Add("Action", "ListStackInstances"); request.Parameters.Add("Version", "2010-05-15"); if(publicRequest != null) { if(publicRequest.IsSetCallAs()) { request.Parameters.Add("CallAs", StringUtils.FromString(publicRequest.CallAs)); } if(publicRequest.IsSetFilters()) { int publicRequestlistValueIndex = 1; foreach(var publicRequestlistValue in publicRequest.Filters) { if(publicRequestlistValue.IsSetName()) { request.Parameters.Add("Filters" + "." + "member" + "." + publicRequestlistValueIndex + "." + "Name", StringUtils.FromString(publicRequestlistValue.Name)); } if(publicRequestlistValue.IsSetValues()) { request.Parameters.Add("Filters" + "." + "member" + "." + publicRequestlistValueIndex + "." + "Values", StringUtils.FromString(publicRequestlistValue.Values)); } publicRequestlistValueIndex++; } } if(publicRequest.IsSetMaxResults()) { request.Parameters.Add("MaxResults", StringUtils.FromInt(publicRequest.MaxResults)); } if(publicRequest.IsSetNextToken()) { request.Parameters.Add("NextToken", StringUtils.FromString(publicRequest.NextToken)); } if(publicRequest.IsSetStackInstanceAccount()) { request.Parameters.Add("StackInstanceAccount", StringUtils.FromString(publicRequest.StackInstanceAccount)); } if(publicRequest.IsSetStackInstanceRegion()) { request.Parameters.Add("StackInstanceRegion", StringUtils.FromString(publicRequest.StackInstanceRegion)); } if(publicRequest.IsSetStackSetName()) { request.Parameters.Add("StackSetName", StringUtils.FromString(publicRequest.StackSetName)); } } return request; } private static ListStackInstancesRequestMarshaller _instance = new ListStackInstancesRequestMarshaller(); internal static ListStackInstancesRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static ListStackInstancesRequestMarshaller Instance { get { return _instance; } } } }
123
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudformation-2010-05-15.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.CloudFormation.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; namespace Amazon.CloudFormation.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for ListStackInstances operation /// </summary> public class ListStackInstancesResponseUnmarshaller : XmlResponseUnmarshaller { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(XmlUnmarshallerContext context) { ListStackInstancesResponse response = new ListStackInstancesResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.IsStartElement) { if(context.TestExpression("ListStackInstancesResult", 2)) { UnmarshallResult(context, response); continue; } if (context.TestExpression("ResponseMetadata", 2)) { response.ResponseMetadata = ResponseMetadataUnmarshaller.Instance.Unmarshall(context); } } } return response; } private static void UnmarshallResult(XmlUnmarshallerContext context, ListStackInstancesResponse response) { int originalDepth = context.CurrentDepth; int targetDepth = originalDepth + 1; if (context.IsStartOfDocument) targetDepth += 2; while (context.ReadAtDepth(originalDepth)) { if (context.IsStartElement || context.IsAttribute) { if (context.TestExpression("NextToken", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.NextToken = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Summaries/member", targetDepth)) { var unmarshaller = StackInstanceSummaryUnmarshaller.Instance; var item = unmarshaller.Unmarshall(context); response.Summaries.Add(item); continue; } } } return; } /// <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(XmlUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) { ErrorResponse errorResponse = ErrorResponseUnmarshaller.GetInstance().Unmarshall(context); errorResponse.InnerException = innerException; errorResponse.StatusCode = statusCode; var responseBodyBytes = context.GetResponseBodyBytes(); using (var streamCopy = new MemoryStream(responseBodyBytes)) using (var contextCopy = new XmlUnmarshallerContext(streamCopy, false, null)) { if (errorResponse.Code != null && errorResponse.Code.Equals("StackSetNotFoundException")) { return StackSetNotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonCloudFormationException(errorResponse.Message, innerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, statusCode); } private static ListStackInstancesResponseUnmarshaller _instance = new ListStackInstancesResponseUnmarshaller(); internal static ListStackInstancesResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static ListStackInstancesResponseUnmarshaller Instance { get { return _instance; } } } }
148
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudformation-2010-05-15.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.CloudFormation.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; namespace Amazon.CloudFormation.Model.Internal.MarshallTransformations { /// <summary> /// ListStackResources Request Marshaller /// </summary> public class ListStackResourcesRequestMarshaller : IMarshaller<IRequest, ListStackResourcesRequest> , 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((ListStackResourcesRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(ListStackResourcesRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.CloudFormation"); request.Parameters.Add("Action", "ListStackResources"); request.Parameters.Add("Version", "2010-05-15"); if(publicRequest != null) { if(publicRequest.IsSetNextToken()) { request.Parameters.Add("NextToken", StringUtils.FromString(publicRequest.NextToken)); } if(publicRequest.IsSetStackName()) { request.Parameters.Add("StackName", StringUtils.FromString(publicRequest.StackName)); } } return request; } private static ListStackResourcesRequestMarshaller _instance = new ListStackResourcesRequestMarshaller(); internal static ListStackResourcesRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static ListStackResourcesRequestMarshaller Instance { get { return _instance; } } } }
91
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudformation-2010-05-15.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.CloudFormation.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; namespace Amazon.CloudFormation.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for ListStackResources operation /// </summary> public class ListStackResourcesResponseUnmarshaller : XmlResponseUnmarshaller { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(XmlUnmarshallerContext context) { ListStackResourcesResponse response = new ListStackResourcesResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.IsStartElement) { if(context.TestExpression("ListStackResourcesResult", 2)) { UnmarshallResult(context, response); continue; } if (context.TestExpression("ResponseMetadata", 2)) { response.ResponseMetadata = ResponseMetadataUnmarshaller.Instance.Unmarshall(context); } } } return response; } private static void UnmarshallResult(XmlUnmarshallerContext context, ListStackResourcesResponse response) { int originalDepth = context.CurrentDepth; int targetDepth = originalDepth + 1; if (context.IsStartOfDocument) targetDepth += 2; while (context.ReadAtDepth(originalDepth)) { if (context.IsStartElement || context.IsAttribute) { if (context.TestExpression("NextToken", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.NextToken = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("StackResourceSummaries/member", targetDepth)) { var unmarshaller = StackResourceSummaryUnmarshaller.Instance; var item = unmarshaller.Unmarshall(context); response.StackResourceSummaries.Add(item); continue; } } } return; } /// <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(XmlUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) { ErrorResponse errorResponse = ErrorResponseUnmarshaller.GetInstance().Unmarshall(context); errorResponse.InnerException = innerException; errorResponse.StatusCode = statusCode; var responseBodyBytes = context.GetResponseBodyBytes(); using (var streamCopy = new MemoryStream(responseBodyBytes)) using (var contextCopy = new XmlUnmarshallerContext(streamCopy, false, null)) { } return new AmazonCloudFormationException(errorResponse.Message, innerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, statusCode); } private static ListStackResourcesResponseUnmarshaller _instance = new ListStackResourcesResponseUnmarshaller(); internal static ListStackResourcesResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static ListStackResourcesResponseUnmarshaller Instance { get { return _instance; } } } }
144
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudformation-2010-05-15.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.CloudFormation.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; namespace Amazon.CloudFormation.Model.Internal.MarshallTransformations { /// <summary> /// ListStackSetOperationResults Request Marshaller /// </summary> public class ListStackSetOperationResultsRequestMarshaller : IMarshaller<IRequest, ListStackSetOperationResultsRequest> , 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((ListStackSetOperationResultsRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(ListStackSetOperationResultsRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.CloudFormation"); request.Parameters.Add("Action", "ListStackSetOperationResults"); request.Parameters.Add("Version", "2010-05-15"); if(publicRequest != null) { if(publicRequest.IsSetCallAs()) { request.Parameters.Add("CallAs", StringUtils.FromString(publicRequest.CallAs)); } if(publicRequest.IsSetFilters()) { int publicRequestlistValueIndex = 1; foreach(var publicRequestlistValue in publicRequest.Filters) { if(publicRequestlistValue.IsSetName()) { request.Parameters.Add("Filters" + "." + "member" + "." + publicRequestlistValueIndex + "." + "Name", StringUtils.FromString(publicRequestlistValue.Name)); } if(publicRequestlistValue.IsSetValues()) { request.Parameters.Add("Filters" + "." + "member" + "." + publicRequestlistValueIndex + "." + "Values", StringUtils.FromString(publicRequestlistValue.Values)); } publicRequestlistValueIndex++; } } if(publicRequest.IsSetMaxResults()) { request.Parameters.Add("MaxResults", StringUtils.FromInt(publicRequest.MaxResults)); } if(publicRequest.IsSetNextToken()) { request.Parameters.Add("NextToken", StringUtils.FromString(publicRequest.NextToken)); } if(publicRequest.IsSetOperationId()) { request.Parameters.Add("OperationId", StringUtils.FromString(publicRequest.OperationId)); } if(publicRequest.IsSetStackSetName()) { request.Parameters.Add("StackSetName", StringUtils.FromString(publicRequest.StackSetName)); } } return request; } private static ListStackSetOperationResultsRequestMarshaller _instance = new ListStackSetOperationResultsRequestMarshaller(); internal static ListStackSetOperationResultsRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static ListStackSetOperationResultsRequestMarshaller Instance { get { return _instance; } } } }
119
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudformation-2010-05-15.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.CloudFormation.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; namespace Amazon.CloudFormation.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for ListStackSetOperationResults operation /// </summary> public class ListStackSetOperationResultsResponseUnmarshaller : XmlResponseUnmarshaller { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(XmlUnmarshallerContext context) { ListStackSetOperationResultsResponse response = new ListStackSetOperationResultsResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.IsStartElement) { if(context.TestExpression("ListStackSetOperationResultsResult", 2)) { UnmarshallResult(context, response); continue; } if (context.TestExpression("ResponseMetadata", 2)) { response.ResponseMetadata = ResponseMetadataUnmarshaller.Instance.Unmarshall(context); } } } return response; } private static void UnmarshallResult(XmlUnmarshallerContext context, ListStackSetOperationResultsResponse response) { int originalDepth = context.CurrentDepth; int targetDepth = originalDepth + 1; if (context.IsStartOfDocument) targetDepth += 2; while (context.ReadAtDepth(originalDepth)) { if (context.IsStartElement || context.IsAttribute) { if (context.TestExpression("NextToken", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.NextToken = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Summaries/member", targetDepth)) { var unmarshaller = StackSetOperationResultSummaryUnmarshaller.Instance; var item = unmarshaller.Unmarshall(context); response.Summaries.Add(item); continue; } } } return; } /// <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(XmlUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) { ErrorResponse errorResponse = ErrorResponseUnmarshaller.GetInstance().Unmarshall(context); errorResponse.InnerException = innerException; errorResponse.StatusCode = statusCode; var responseBodyBytes = context.GetResponseBodyBytes(); using (var streamCopy = new MemoryStream(responseBodyBytes)) using (var contextCopy = new XmlUnmarshallerContext(streamCopy, false, null)) { if (errorResponse.Code != null && errorResponse.Code.Equals("OperationNotFoundException")) { return OperationNotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("StackSetNotFoundException")) { return StackSetNotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonCloudFormationException(errorResponse.Message, innerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, statusCode); } private static ListStackSetOperationResultsResponseUnmarshaller _instance = new ListStackSetOperationResultsResponseUnmarshaller(); internal static ListStackSetOperationResultsResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static ListStackSetOperationResultsResponseUnmarshaller 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 cloudformation-2010-05-15.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.CloudFormation.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; namespace Amazon.CloudFormation.Model.Internal.MarshallTransformations { /// <summary> /// ListStackSetOperations Request Marshaller /// </summary> public class ListStackSetOperationsRequestMarshaller : IMarshaller<IRequest, ListStackSetOperationsRequest> , 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((ListStackSetOperationsRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(ListStackSetOperationsRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.CloudFormation"); request.Parameters.Add("Action", "ListStackSetOperations"); request.Parameters.Add("Version", "2010-05-15"); if(publicRequest != null) { if(publicRequest.IsSetCallAs()) { request.Parameters.Add("CallAs", StringUtils.FromString(publicRequest.CallAs)); } if(publicRequest.IsSetMaxResults()) { request.Parameters.Add("MaxResults", StringUtils.FromInt(publicRequest.MaxResults)); } if(publicRequest.IsSetNextToken()) { request.Parameters.Add("NextToken", StringUtils.FromString(publicRequest.NextToken)); } if(publicRequest.IsSetStackSetName()) { request.Parameters.Add("StackSetName", StringUtils.FromString(publicRequest.StackSetName)); } } return request; } private static ListStackSetOperationsRequestMarshaller _instance = new ListStackSetOperationsRequestMarshaller(); internal static ListStackSetOperationsRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static ListStackSetOperationsRequestMarshaller Instance { get { return _instance; } } } }
99
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudformation-2010-05-15.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.CloudFormation.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; namespace Amazon.CloudFormation.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for ListStackSetOperations operation /// </summary> public class ListStackSetOperationsResponseUnmarshaller : XmlResponseUnmarshaller { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(XmlUnmarshallerContext context) { ListStackSetOperationsResponse response = new ListStackSetOperationsResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.IsStartElement) { if(context.TestExpression("ListStackSetOperationsResult", 2)) { UnmarshallResult(context, response); continue; } if (context.TestExpression("ResponseMetadata", 2)) { response.ResponseMetadata = ResponseMetadataUnmarshaller.Instance.Unmarshall(context); } } } return response; } private static void UnmarshallResult(XmlUnmarshallerContext context, ListStackSetOperationsResponse response) { int originalDepth = context.CurrentDepth; int targetDepth = originalDepth + 1; if (context.IsStartOfDocument) targetDepth += 2; while (context.ReadAtDepth(originalDepth)) { if (context.IsStartElement || context.IsAttribute) { if (context.TestExpression("NextToken", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.NextToken = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Summaries/member", targetDepth)) { var unmarshaller = StackSetOperationSummaryUnmarshaller.Instance; var item = unmarshaller.Unmarshall(context); response.Summaries.Add(item); continue; } } } return; } /// <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(XmlUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) { ErrorResponse errorResponse = ErrorResponseUnmarshaller.GetInstance().Unmarshall(context); errorResponse.InnerException = innerException; errorResponse.StatusCode = statusCode; var responseBodyBytes = context.GetResponseBodyBytes(); using (var streamCopy = new MemoryStream(responseBodyBytes)) using (var contextCopy = new XmlUnmarshallerContext(streamCopy, false, null)) { if (errorResponse.Code != null && errorResponse.Code.Equals("StackSetNotFoundException")) { return StackSetNotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonCloudFormationException(errorResponse.Message, innerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, statusCode); } private static ListStackSetOperationsResponseUnmarshaller _instance = new ListStackSetOperationsResponseUnmarshaller(); internal static ListStackSetOperationsResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static ListStackSetOperationsResponseUnmarshaller Instance { get { return _instance; } } } }
148
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudformation-2010-05-15.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.CloudFormation.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; namespace Amazon.CloudFormation.Model.Internal.MarshallTransformations { /// <summary> /// ListStackSets Request Marshaller /// </summary> public class ListStackSetsRequestMarshaller : IMarshaller<IRequest, ListStackSetsRequest> , 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((ListStackSetsRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(ListStackSetsRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.CloudFormation"); request.Parameters.Add("Action", "ListStackSets"); request.Parameters.Add("Version", "2010-05-15"); if(publicRequest != null) { if(publicRequest.IsSetCallAs()) { request.Parameters.Add("CallAs", StringUtils.FromString(publicRequest.CallAs)); } if(publicRequest.IsSetMaxResults()) { request.Parameters.Add("MaxResults", StringUtils.FromInt(publicRequest.MaxResults)); } if(publicRequest.IsSetNextToken()) { request.Parameters.Add("NextToken", StringUtils.FromString(publicRequest.NextToken)); } if(publicRequest.IsSetStatus()) { request.Parameters.Add("Status", StringUtils.FromString(publicRequest.Status)); } } return request; } private static ListStackSetsRequestMarshaller _instance = new ListStackSetsRequestMarshaller(); internal static ListStackSetsRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static ListStackSetsRequestMarshaller Instance { get { return _instance; } } } }
99
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudformation-2010-05-15.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.CloudFormation.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; namespace Amazon.CloudFormation.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for ListStackSets operation /// </summary> public class ListStackSetsResponseUnmarshaller : XmlResponseUnmarshaller { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(XmlUnmarshallerContext context) { ListStackSetsResponse response = new ListStackSetsResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.IsStartElement) { if(context.TestExpression("ListStackSetsResult", 2)) { UnmarshallResult(context, response); continue; } if (context.TestExpression("ResponseMetadata", 2)) { response.ResponseMetadata = ResponseMetadataUnmarshaller.Instance.Unmarshall(context); } } } return response; } private static void UnmarshallResult(XmlUnmarshallerContext context, ListStackSetsResponse response) { int originalDepth = context.CurrentDepth; int targetDepth = originalDepth + 1; if (context.IsStartOfDocument) targetDepth += 2; while (context.ReadAtDepth(originalDepth)) { if (context.IsStartElement || context.IsAttribute) { if (context.TestExpression("NextToken", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.NextToken = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Summaries/member", targetDepth)) { var unmarshaller = StackSetSummaryUnmarshaller.Instance; var item = unmarshaller.Unmarshall(context); response.Summaries.Add(item); continue; } } } return; } /// <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(XmlUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) { ErrorResponse errorResponse = ErrorResponseUnmarshaller.GetInstance().Unmarshall(context); errorResponse.InnerException = innerException; errorResponse.StatusCode = statusCode; var responseBodyBytes = context.GetResponseBodyBytes(); using (var streamCopy = new MemoryStream(responseBodyBytes)) using (var contextCopy = new XmlUnmarshallerContext(streamCopy, false, null)) { } return new AmazonCloudFormationException(errorResponse.Message, innerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, statusCode); } private static ListStackSetsResponseUnmarshaller _instance = new ListStackSetsResponseUnmarshaller(); internal static ListStackSetsResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static ListStackSetsResponseUnmarshaller Instance { get { return _instance; } } } }
144
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudformation-2010-05-15.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.CloudFormation.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; namespace Amazon.CloudFormation.Model.Internal.MarshallTransformations { /// <summary> /// ListStacks Request Marshaller /// </summary> public class ListStacksRequestMarshaller : IMarshaller<IRequest, ListStacksRequest> , 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((ListStacksRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(ListStacksRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.CloudFormation"); request.Parameters.Add("Action", "ListStacks"); request.Parameters.Add("Version", "2010-05-15"); if(publicRequest != null) { if(publicRequest.IsSetNextToken()) { request.Parameters.Add("NextToken", StringUtils.FromString(publicRequest.NextToken)); } if(publicRequest.IsSetStackStatusFilter()) { int publicRequestlistValueIndex = 1; foreach(var publicRequestlistValue in publicRequest.StackStatusFilter) { request.Parameters.Add("StackStatusFilter" + "." + "member" + "." + publicRequestlistValueIndex, StringUtils.FromString(publicRequestlistValue)); publicRequestlistValueIndex++; } } } return request; } private static ListStacksRequestMarshaller _instance = new ListStacksRequestMarshaller(); internal static ListStacksRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static ListStacksRequestMarshaller Instance { get { return _instance; } } } }
96
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudformation-2010-05-15.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.CloudFormation.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; namespace Amazon.CloudFormation.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for ListStacks operation /// </summary> public class ListStacksResponseUnmarshaller : XmlResponseUnmarshaller { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(XmlUnmarshallerContext context) { ListStacksResponse response = new ListStacksResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.IsStartElement) { if(context.TestExpression("ListStacksResult", 2)) { UnmarshallResult(context, response); continue; } if (context.TestExpression("ResponseMetadata", 2)) { response.ResponseMetadata = ResponseMetadataUnmarshaller.Instance.Unmarshall(context); } } } return response; } private static void UnmarshallResult(XmlUnmarshallerContext context, ListStacksResponse response) { int originalDepth = context.CurrentDepth; int targetDepth = originalDepth + 1; if (context.IsStartOfDocument) targetDepth += 2; while (context.ReadAtDepth(originalDepth)) { if (context.IsStartElement || context.IsAttribute) { if (context.TestExpression("NextToken", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.NextToken = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("StackSummaries/member", targetDepth)) { var unmarshaller = StackSummaryUnmarshaller.Instance; var item = unmarshaller.Unmarshall(context); response.StackSummaries.Add(item); continue; } } } return; } /// <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(XmlUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) { ErrorResponse errorResponse = ErrorResponseUnmarshaller.GetInstance().Unmarshall(context); errorResponse.InnerException = innerException; errorResponse.StatusCode = statusCode; var responseBodyBytes = context.GetResponseBodyBytes(); using (var streamCopy = new MemoryStream(responseBodyBytes)) using (var contextCopy = new XmlUnmarshallerContext(streamCopy, false, null)) { } return new AmazonCloudFormationException(errorResponse.Message, innerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, statusCode); } private static ListStacksResponseUnmarshaller _instance = new ListStacksResponseUnmarshaller(); internal static ListStacksResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static ListStacksResponseUnmarshaller Instance { get { return _instance; } } } }
144
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudformation-2010-05-15.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.CloudFormation.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; namespace Amazon.CloudFormation.Model.Internal.MarshallTransformations { /// <summary> /// ListTypeRegistrations Request Marshaller /// </summary> public class ListTypeRegistrationsRequestMarshaller : IMarshaller<IRequest, ListTypeRegistrationsRequest> , 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((ListTypeRegistrationsRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(ListTypeRegistrationsRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.CloudFormation"); request.Parameters.Add("Action", "ListTypeRegistrations"); request.Parameters.Add("Version", "2010-05-15"); if(publicRequest != null) { if(publicRequest.IsSetMaxResults()) { request.Parameters.Add("MaxResults", StringUtils.FromInt(publicRequest.MaxResults)); } if(publicRequest.IsSetNextToken()) { request.Parameters.Add("NextToken", StringUtils.FromString(publicRequest.NextToken)); } if(publicRequest.IsSetRegistrationStatusFilter()) { request.Parameters.Add("RegistrationStatusFilter", StringUtils.FromString(publicRequest.RegistrationStatusFilter)); } if(publicRequest.IsSetType()) { request.Parameters.Add("Type", StringUtils.FromString(publicRequest.Type)); } if(publicRequest.IsSetTypeArn()) { request.Parameters.Add("TypeArn", StringUtils.FromString(publicRequest.TypeArn)); } if(publicRequest.IsSetTypeName()) { request.Parameters.Add("TypeName", StringUtils.FromString(publicRequest.TypeName)); } } return request; } private static ListTypeRegistrationsRequestMarshaller _instance = new ListTypeRegistrationsRequestMarshaller(); internal static ListTypeRegistrationsRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static ListTypeRegistrationsRequestMarshaller 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 cloudformation-2010-05-15.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.CloudFormation.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; namespace Amazon.CloudFormation.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for ListTypeRegistrations operation /// </summary> public class ListTypeRegistrationsResponseUnmarshaller : XmlResponseUnmarshaller { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(XmlUnmarshallerContext context) { ListTypeRegistrationsResponse response = new ListTypeRegistrationsResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.IsStartElement) { if(context.TestExpression("ListTypeRegistrationsResult", 2)) { UnmarshallResult(context, response); continue; } if (context.TestExpression("ResponseMetadata", 2)) { response.ResponseMetadata = ResponseMetadataUnmarshaller.Instance.Unmarshall(context); } } } return response; } private static void UnmarshallResult(XmlUnmarshallerContext context, ListTypeRegistrationsResponse response) { int originalDepth = context.CurrentDepth; int targetDepth = originalDepth + 1; if (context.IsStartOfDocument) targetDepth += 2; while (context.ReadAtDepth(originalDepth)) { if (context.IsStartElement || context.IsAttribute) { if (context.TestExpression("NextToken", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.NextToken = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("RegistrationTokenList/member", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; var item = unmarshaller.Unmarshall(context); response.RegistrationTokenList.Add(item); continue; } } } return; } /// <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(XmlUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) { ErrorResponse errorResponse = ErrorResponseUnmarshaller.GetInstance().Unmarshall(context); errorResponse.InnerException = innerException; errorResponse.StatusCode = statusCode; var responseBodyBytes = context.GetResponseBodyBytes(); using (var streamCopy = new MemoryStream(responseBodyBytes)) using (var contextCopy = new XmlUnmarshallerContext(streamCopy, false, null)) { if (errorResponse.Code != null && errorResponse.Code.Equals("CFNRegistryException")) { return CFNRegistryExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonCloudFormationException(errorResponse.Message, innerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, statusCode); } private static ListTypeRegistrationsResponseUnmarshaller _instance = new ListTypeRegistrationsResponseUnmarshaller(); internal static ListTypeRegistrationsResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static ListTypeRegistrationsResponseUnmarshaller Instance { get { return _instance; } } } }
148
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudformation-2010-05-15.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.CloudFormation.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; namespace Amazon.CloudFormation.Model.Internal.MarshallTransformations { /// <summary> /// ListTypes Request Marshaller /// </summary> public class ListTypesRequestMarshaller : IMarshaller<IRequest, ListTypesRequest> , 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((ListTypesRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(ListTypesRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.CloudFormation"); request.Parameters.Add("Action", "ListTypes"); request.Parameters.Add("Version", "2010-05-15"); if(publicRequest != null) { if(publicRequest.IsSetDeprecatedStatus()) { request.Parameters.Add("DeprecatedStatus", StringUtils.FromString(publicRequest.DeprecatedStatus)); } if(publicRequest.IsSetFilters()) { if(publicRequest.Filters.IsSetCategory()) { request.Parameters.Add("Filters" + "." + "Category", StringUtils.FromString(publicRequest.Filters.Category)); } if(publicRequest.Filters.IsSetPublisherId()) { request.Parameters.Add("Filters" + "." + "PublisherId", StringUtils.FromString(publicRequest.Filters.PublisherId)); } if(publicRequest.Filters.IsSetTypeNamePrefix()) { request.Parameters.Add("Filters" + "." + "TypeNamePrefix", StringUtils.FromString(publicRequest.Filters.TypeNamePrefix)); } } if(publicRequest.IsSetMaxResults()) { request.Parameters.Add("MaxResults", StringUtils.FromInt(publicRequest.MaxResults)); } if(publicRequest.IsSetNextToken()) { request.Parameters.Add("NextToken", StringUtils.FromString(publicRequest.NextToken)); } if(publicRequest.IsSetProvisioningType()) { request.Parameters.Add("ProvisioningType", StringUtils.FromString(publicRequest.ProvisioningType)); } if(publicRequest.IsSetType()) { request.Parameters.Add("Type", StringUtils.FromString(publicRequest.Type)); } if(publicRequest.IsSetVisibility()) { request.Parameters.Add("Visibility", StringUtils.FromString(publicRequest.Visibility)); } } return request; } private static ListTypesRequestMarshaller _instance = new ListTypesRequestMarshaller(); internal static ListTypesRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static ListTypesRequestMarshaller 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 cloudformation-2010-05-15.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.CloudFormation.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; namespace Amazon.CloudFormation.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for ListTypes operation /// </summary> public class ListTypesResponseUnmarshaller : XmlResponseUnmarshaller { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(XmlUnmarshallerContext context) { ListTypesResponse response = new ListTypesResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.IsStartElement) { if(context.TestExpression("ListTypesResult", 2)) { UnmarshallResult(context, response); continue; } if (context.TestExpression("ResponseMetadata", 2)) { response.ResponseMetadata = ResponseMetadataUnmarshaller.Instance.Unmarshall(context); } } } return response; } private static void UnmarshallResult(XmlUnmarshallerContext context, ListTypesResponse response) { int originalDepth = context.CurrentDepth; int targetDepth = originalDepth + 1; if (context.IsStartOfDocument) targetDepth += 2; while (context.ReadAtDepth(originalDepth)) { if (context.IsStartElement || context.IsAttribute) { if (context.TestExpression("NextToken", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.NextToken = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("TypeSummaries/member", targetDepth)) { var unmarshaller = TypeSummaryUnmarshaller.Instance; var item = unmarshaller.Unmarshall(context); response.TypeSummaries.Add(item); continue; } } } return; } /// <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(XmlUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) { ErrorResponse errorResponse = ErrorResponseUnmarshaller.GetInstance().Unmarshall(context); errorResponse.InnerException = innerException; errorResponse.StatusCode = statusCode; var responseBodyBytes = context.GetResponseBodyBytes(); using (var streamCopy = new MemoryStream(responseBodyBytes)) using (var contextCopy = new XmlUnmarshallerContext(streamCopy, false, null)) { if (errorResponse.Code != null && errorResponse.Code.Equals("CFNRegistryException")) { return CFNRegistryExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonCloudFormationException(errorResponse.Message, innerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, statusCode); } private static ListTypesResponseUnmarshaller _instance = new ListTypesResponseUnmarshaller(); internal static ListTypesResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static ListTypesResponseUnmarshaller Instance { get { return _instance; } } } }
148
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudformation-2010-05-15.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.CloudFormation.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; namespace Amazon.CloudFormation.Model.Internal.MarshallTransformations { /// <summary> /// ListTypeVersions Request Marshaller /// </summary> public class ListTypeVersionsRequestMarshaller : IMarshaller<IRequest, ListTypeVersionsRequest> , 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((ListTypeVersionsRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(ListTypeVersionsRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.CloudFormation"); request.Parameters.Add("Action", "ListTypeVersions"); request.Parameters.Add("Version", "2010-05-15"); if(publicRequest != null) { if(publicRequest.IsSetArn()) { request.Parameters.Add("Arn", StringUtils.FromString(publicRequest.Arn)); } if(publicRequest.IsSetDeprecatedStatus()) { request.Parameters.Add("DeprecatedStatus", StringUtils.FromString(publicRequest.DeprecatedStatus)); } if(publicRequest.IsSetMaxResults()) { request.Parameters.Add("MaxResults", StringUtils.FromInt(publicRequest.MaxResults)); } if(publicRequest.IsSetNextToken()) { request.Parameters.Add("NextToken", StringUtils.FromString(publicRequest.NextToken)); } if(publicRequest.IsSetPublisherId()) { request.Parameters.Add("PublisherId", StringUtils.FromString(publicRequest.PublisherId)); } if(publicRequest.IsSetType()) { request.Parameters.Add("Type", StringUtils.FromString(publicRequest.Type)); } if(publicRequest.IsSetTypeName()) { request.Parameters.Add("TypeName", StringUtils.FromString(publicRequest.TypeName)); } } return request; } private static ListTypeVersionsRequestMarshaller _instance = new ListTypeVersionsRequestMarshaller(); internal static ListTypeVersionsRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static ListTypeVersionsRequestMarshaller Instance { get { return _instance; } } } }
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 cloudformation-2010-05-15.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.CloudFormation.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; namespace Amazon.CloudFormation.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for ListTypeVersions operation /// </summary> public class ListTypeVersionsResponseUnmarshaller : XmlResponseUnmarshaller { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(XmlUnmarshallerContext context) { ListTypeVersionsResponse response = new ListTypeVersionsResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.IsStartElement) { if(context.TestExpression("ListTypeVersionsResult", 2)) { UnmarshallResult(context, response); continue; } if (context.TestExpression("ResponseMetadata", 2)) { response.ResponseMetadata = ResponseMetadataUnmarshaller.Instance.Unmarshall(context); } } } return response; } private static void UnmarshallResult(XmlUnmarshallerContext context, ListTypeVersionsResponse response) { int originalDepth = context.CurrentDepth; int targetDepth = originalDepth + 1; if (context.IsStartOfDocument) targetDepth += 2; while (context.ReadAtDepth(originalDepth)) { if (context.IsStartElement || context.IsAttribute) { if (context.TestExpression("NextToken", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.NextToken = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("TypeVersionSummaries/member", targetDepth)) { var unmarshaller = TypeVersionSummaryUnmarshaller.Instance; var item = unmarshaller.Unmarshall(context); response.TypeVersionSummaries.Add(item); continue; } } } return; } /// <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(XmlUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) { ErrorResponse errorResponse = ErrorResponseUnmarshaller.GetInstance().Unmarshall(context); errorResponse.InnerException = innerException; errorResponse.StatusCode = statusCode; var responseBodyBytes = context.GetResponseBodyBytes(); using (var streamCopy = new MemoryStream(responseBodyBytes)) using (var contextCopy = new XmlUnmarshallerContext(streamCopy, false, null)) { if (errorResponse.Code != null && errorResponse.Code.Equals("CFNRegistryException")) { return CFNRegistryExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonCloudFormationException(errorResponse.Message, innerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, statusCode); } private static ListTypeVersionsResponseUnmarshaller _instance = new ListTypeVersionsResponseUnmarshaller(); internal static ListTypeVersionsResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static ListTypeVersionsResponseUnmarshaller Instance { get { return _instance; } } } }
148
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudformation-2010-05-15.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.CloudFormation.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; namespace Amazon.CloudFormation.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for LoggingConfig Object /// </summary> public class LoggingConfigUnmarshaller : IUnmarshaller<LoggingConfig, XmlUnmarshallerContext>, IUnmarshaller<LoggingConfig, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public LoggingConfig Unmarshall(XmlUnmarshallerContext context) { LoggingConfig unmarshalledObject = new LoggingConfig(); int originalDepth = context.CurrentDepth; int targetDepth = originalDepth + 1; if (context.IsStartOfDocument) targetDepth += 2; while (context.ReadAtDepth(originalDepth)) { if (context.IsStartElement || context.IsAttribute) { if (context.TestExpression("LogGroupName", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.LogGroupName = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("LogRoleArn", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.LogRoleArn = unmarshaller.Unmarshall(context); continue; } } else if (context.IsEndElement && context.CurrentDepth < originalDepth) { return unmarshalledObject; } } return unmarshalledObject; } /// <summary> /// Unmarshaller error response to exception. /// </summary> /// <param name="context"></param> /// <returns></returns> public LoggingConfig Unmarshall(JsonUnmarshallerContext context) { return null; } private static LoggingConfigUnmarshaller _instance = new LoggingConfigUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static LoggingConfigUnmarshaller Instance { get { return _instance; } } } }
103
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudformation-2010-05-15.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.CloudFormation.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; namespace Amazon.CloudFormation.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for ManagedExecution Object /// </summary> public class ManagedExecutionUnmarshaller : IUnmarshaller<ManagedExecution, XmlUnmarshallerContext>, IUnmarshaller<ManagedExecution, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public ManagedExecution Unmarshall(XmlUnmarshallerContext context) { ManagedExecution unmarshalledObject = new ManagedExecution(); int originalDepth = context.CurrentDepth; int targetDepth = originalDepth + 1; if (context.IsStartOfDocument) targetDepth += 2; while (context.ReadAtDepth(originalDepth)) { if (context.IsStartElement || context.IsAttribute) { if (context.TestExpression("Active", targetDepth)) { var unmarshaller = BoolUnmarshaller.Instance; unmarshalledObject.Active = unmarshaller.Unmarshall(context); continue; } } else if (context.IsEndElement && context.CurrentDepth < originalDepth) { return unmarshalledObject; } } return unmarshalledObject; } /// <summary> /// Unmarshaller error response to exception. /// </summary> /// <param name="context"></param> /// <returns></returns> public ManagedExecution Unmarshall(JsonUnmarshallerContext context) { return null; } private static ManagedExecutionUnmarshaller _instance = new ManagedExecutionUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static ManagedExecutionUnmarshaller Instance { get { return _instance; } } } }
97
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudformation-2010-05-15.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.CloudFormation.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; namespace Amazon.CloudFormation.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for ModuleInfo Object /// </summary> public class ModuleInfoUnmarshaller : IUnmarshaller<ModuleInfo, XmlUnmarshallerContext>, IUnmarshaller<ModuleInfo, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public ModuleInfo Unmarshall(XmlUnmarshallerContext context) { ModuleInfo unmarshalledObject = new ModuleInfo(); int originalDepth = context.CurrentDepth; int targetDepth = originalDepth + 1; if (context.IsStartOfDocument) targetDepth += 2; while (context.ReadAtDepth(originalDepth)) { if (context.IsStartElement || context.IsAttribute) { if (context.TestExpression("LogicalIdHierarchy", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.LogicalIdHierarchy = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("TypeHierarchy", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.TypeHierarchy = unmarshaller.Unmarshall(context); continue; } } else if (context.IsEndElement && context.CurrentDepth < originalDepth) { return unmarshalledObject; } } return unmarshalledObject; } /// <summary> /// Unmarshaller error response to exception. /// </summary> /// <param name="context"></param> /// <returns></returns> public ModuleInfo Unmarshall(JsonUnmarshallerContext context) { return null; } private static ModuleInfoUnmarshaller _instance = new ModuleInfoUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static ModuleInfoUnmarshaller Instance { get { return _instance; } } } }
103
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudformation-2010-05-15.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.CloudFormation.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; namespace Amazon.CloudFormation.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for NameAlreadyExistsException operation /// </summary> public class NameAlreadyExistsExceptionUnmarshaller : IErrorResponseUnmarshaller<NameAlreadyExistsException, XmlUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public NameAlreadyExistsException Unmarshall(XmlUnmarshallerContext context) { return this.Unmarshall(context, new Amazon.Runtime.Internal.ErrorResponse()); } /// <summary> /// Unmarshaller error response to exception. /// </summary> /// <param name="context"></param> /// <param name="errorResponse"></param> /// <returns></returns> public NameAlreadyExistsException Unmarshall(XmlUnmarshallerContext context, Amazon.Runtime.Internal.ErrorResponse errorResponse) { NameAlreadyExistsException response = new NameAlreadyExistsException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); int originalDepth = context.CurrentDepth; int targetDepth = originalDepth + 1; if (context.IsStartOfDocument) targetDepth += 2; while (context.ReadAtDepth(originalDepth)) { if (context.IsStartElement || context.IsAttribute) { } } return response; } private static NameAlreadyExistsExceptionUnmarshaller _instance = new NameAlreadyExistsExceptionUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static NameAlreadyExistsExceptionUnmarshaller Instance { get { return _instance; } } } }
88
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudformation-2010-05-15.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.CloudFormation.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; namespace Amazon.CloudFormation.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for OperationIdAlreadyExistsException operation /// </summary> public class OperationIdAlreadyExistsExceptionUnmarshaller : IErrorResponseUnmarshaller<OperationIdAlreadyExistsException, XmlUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public OperationIdAlreadyExistsException Unmarshall(XmlUnmarshallerContext context) { return this.Unmarshall(context, new Amazon.Runtime.Internal.ErrorResponse()); } /// <summary> /// Unmarshaller error response to exception. /// </summary> /// <param name="context"></param> /// <param name="errorResponse"></param> /// <returns></returns> public OperationIdAlreadyExistsException Unmarshall(XmlUnmarshallerContext context, Amazon.Runtime.Internal.ErrorResponse errorResponse) { OperationIdAlreadyExistsException response = new OperationIdAlreadyExistsException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); int originalDepth = context.CurrentDepth; int targetDepth = originalDepth + 1; if (context.IsStartOfDocument) targetDepth += 2; while (context.ReadAtDepth(originalDepth)) { if (context.IsStartElement || context.IsAttribute) { } } return response; } private static OperationIdAlreadyExistsExceptionUnmarshaller _instance = new OperationIdAlreadyExistsExceptionUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static OperationIdAlreadyExistsExceptionUnmarshaller Instance { get { return _instance; } } } }
88
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudformation-2010-05-15.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.CloudFormation.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; namespace Amazon.CloudFormation.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for OperationInProgressException operation /// </summary> public class OperationInProgressExceptionUnmarshaller : IErrorResponseUnmarshaller<OperationInProgressException, XmlUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public OperationInProgressException Unmarshall(XmlUnmarshallerContext context) { return this.Unmarshall(context, new Amazon.Runtime.Internal.ErrorResponse()); } /// <summary> /// Unmarshaller error response to exception. /// </summary> /// <param name="context"></param> /// <param name="errorResponse"></param> /// <returns></returns> public OperationInProgressException Unmarshall(XmlUnmarshallerContext context, Amazon.Runtime.Internal.ErrorResponse errorResponse) { OperationInProgressException response = new OperationInProgressException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); int originalDepth = context.CurrentDepth; int targetDepth = originalDepth + 1; if (context.IsStartOfDocument) targetDepth += 2; while (context.ReadAtDepth(originalDepth)) { if (context.IsStartElement || context.IsAttribute) { } } return response; } private static OperationInProgressExceptionUnmarshaller _instance = new OperationInProgressExceptionUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static OperationInProgressExceptionUnmarshaller Instance { get { return _instance; } } } }
88
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudformation-2010-05-15.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.CloudFormation.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; namespace Amazon.CloudFormation.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for OperationNotFoundException operation /// </summary> public class OperationNotFoundExceptionUnmarshaller : IErrorResponseUnmarshaller<OperationNotFoundException, XmlUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public OperationNotFoundException Unmarshall(XmlUnmarshallerContext context) { return this.Unmarshall(context, new Amazon.Runtime.Internal.ErrorResponse()); } /// <summary> /// Unmarshaller error response to exception. /// </summary> /// <param name="context"></param> /// <param name="errorResponse"></param> /// <returns></returns> public OperationNotFoundException Unmarshall(XmlUnmarshallerContext context, Amazon.Runtime.Internal.ErrorResponse errorResponse) { OperationNotFoundException response = new OperationNotFoundException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); int originalDepth = context.CurrentDepth; int targetDepth = originalDepth + 1; if (context.IsStartOfDocument) targetDepth += 2; while (context.ReadAtDepth(originalDepth)) { if (context.IsStartElement || context.IsAttribute) { } } return response; } private static OperationNotFoundExceptionUnmarshaller _instance = new OperationNotFoundExceptionUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static OperationNotFoundExceptionUnmarshaller Instance { get { return _instance; } } } }
88
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudformation-2010-05-15.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.CloudFormation.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; namespace Amazon.CloudFormation.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for OperationStatusCheckFailedException operation /// </summary> public class OperationStatusCheckFailedExceptionUnmarshaller : IErrorResponseUnmarshaller<OperationStatusCheckFailedException, XmlUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public OperationStatusCheckFailedException Unmarshall(XmlUnmarshallerContext context) { return this.Unmarshall(context, new Amazon.Runtime.Internal.ErrorResponse()); } /// <summary> /// Unmarshaller error response to exception. /// </summary> /// <param name="context"></param> /// <param name="errorResponse"></param> /// <returns></returns> public OperationStatusCheckFailedException Unmarshall(XmlUnmarshallerContext context, Amazon.Runtime.Internal.ErrorResponse errorResponse) { OperationStatusCheckFailedException response = new OperationStatusCheckFailedException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); int originalDepth = context.CurrentDepth; int targetDepth = originalDepth + 1; if (context.IsStartOfDocument) targetDepth += 2; while (context.ReadAtDepth(originalDepth)) { if (context.IsStartElement || context.IsAttribute) { } } return response; } private static OperationStatusCheckFailedExceptionUnmarshaller _instance = new OperationStatusCheckFailedExceptionUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static OperationStatusCheckFailedExceptionUnmarshaller Instance { get { return _instance; } } } }
88
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudformation-2010-05-15.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.CloudFormation.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; namespace Amazon.CloudFormation.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for Output Object /// </summary> public class OutputUnmarshaller : IUnmarshaller<Output, XmlUnmarshallerContext>, IUnmarshaller<Output, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public Output Unmarshall(XmlUnmarshallerContext context) { Output unmarshalledObject = new Output(); int originalDepth = context.CurrentDepth; int targetDepth = originalDepth + 1; if (context.IsStartOfDocument) targetDepth += 2; while (context.ReadAtDepth(originalDepth)) { if (context.IsStartElement || context.IsAttribute) { if (context.TestExpression("Description", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Description = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("ExportName", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.ExportName = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("OutputKey", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.OutputKey = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("OutputValue", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.OutputValue = unmarshaller.Unmarshall(context); continue; } } else if (context.IsEndElement && context.CurrentDepth < originalDepth) { return unmarshalledObject; } } return unmarshalledObject; } /// <summary> /// Unmarshaller error response to exception. /// </summary> /// <param name="context"></param> /// <returns></returns> public Output Unmarshall(JsonUnmarshallerContext context) { return null; } private static OutputUnmarshaller _instance = new OutputUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static OutputUnmarshaller Instance { get { return _instance; } } } }
115
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudformation-2010-05-15.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.CloudFormation.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; namespace Amazon.CloudFormation.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for ParameterConstraints Object /// </summary> public class ParameterConstraintsUnmarshaller : IUnmarshaller<ParameterConstraints, XmlUnmarshallerContext>, IUnmarshaller<ParameterConstraints, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public ParameterConstraints Unmarshall(XmlUnmarshallerContext context) { ParameterConstraints unmarshalledObject = new ParameterConstraints(); int originalDepth = context.CurrentDepth; int targetDepth = originalDepth + 1; if (context.IsStartOfDocument) targetDepth += 2; while (context.ReadAtDepth(originalDepth)) { if (context.IsStartElement || context.IsAttribute) { if (context.TestExpression("AllowedValues/member", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; var item = unmarshaller.Unmarshall(context); unmarshalledObject.AllowedValues.Add(item); continue; } } else if (context.IsEndElement && context.CurrentDepth < originalDepth) { return unmarshalledObject; } } return unmarshalledObject; } /// <summary> /// Unmarshaller error response to exception. /// </summary> /// <param name="context"></param> /// <returns></returns> public ParameterConstraints Unmarshall(JsonUnmarshallerContext context) { return null; } private static ParameterConstraintsUnmarshaller _instance = new ParameterConstraintsUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static ParameterConstraintsUnmarshaller 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 cloudformation-2010-05-15.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.CloudFormation.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; namespace Amazon.CloudFormation.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for ParameterDeclaration Object /// </summary> public class ParameterDeclarationUnmarshaller : IUnmarshaller<ParameterDeclaration, XmlUnmarshallerContext>, IUnmarshaller<ParameterDeclaration, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public ParameterDeclaration Unmarshall(XmlUnmarshallerContext context) { ParameterDeclaration unmarshalledObject = new ParameterDeclaration(); int originalDepth = context.CurrentDepth; int targetDepth = originalDepth + 1; if (context.IsStartOfDocument) targetDepth += 2; while (context.ReadAtDepth(originalDepth)) { if (context.IsStartElement || context.IsAttribute) { if (context.TestExpression("DefaultValue", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.DefaultValue = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Description", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Description = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("NoEcho", targetDepth)) { var unmarshaller = BoolUnmarshaller.Instance; unmarshalledObject.NoEcho = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("ParameterConstraints", targetDepth)) { var unmarshaller = ParameterConstraintsUnmarshaller.Instance; unmarshalledObject.ParameterConstraints = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("ParameterKey", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.ParameterKey = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("ParameterType", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.ParameterType = unmarshaller.Unmarshall(context); continue; } } else if (context.IsEndElement && context.CurrentDepth < originalDepth) { return unmarshalledObject; } } return unmarshalledObject; } /// <summary> /// Unmarshaller error response to exception. /// </summary> /// <param name="context"></param> /// <returns></returns> public ParameterDeclaration Unmarshall(JsonUnmarshallerContext context) { return null; } private static ParameterDeclarationUnmarshaller _instance = new ParameterDeclarationUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static ParameterDeclarationUnmarshaller Instance { get { return _instance; } } } }
127
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudformation-2010-05-15.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.CloudFormation.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; namespace Amazon.CloudFormation.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for Parameter Object /// </summary> public class ParameterUnmarshaller : IUnmarshaller<Parameter, XmlUnmarshallerContext>, IUnmarshaller<Parameter, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public Parameter Unmarshall(XmlUnmarshallerContext context) { Parameter unmarshalledObject = new Parameter(); int originalDepth = context.CurrentDepth; int targetDepth = originalDepth + 1; if (context.IsStartOfDocument) targetDepth += 2; while (context.ReadAtDepth(originalDepth)) { if (context.IsStartElement || context.IsAttribute) { if (context.TestExpression("ParameterKey", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.ParameterKey = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("ParameterValue", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.ParameterValue = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("ResolvedValue", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.ResolvedValue = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("UsePreviousValue", targetDepth)) { var unmarshaller = BoolUnmarshaller.Instance; unmarshalledObject.UsePreviousValue = unmarshaller.Unmarshall(context); continue; } } else if (context.IsEndElement && context.CurrentDepth < originalDepth) { return unmarshalledObject; } } return unmarshalledObject; } /// <summary> /// Unmarshaller error response to exception. /// </summary> /// <param name="context"></param> /// <returns></returns> public Parameter Unmarshall(JsonUnmarshallerContext context) { return null; } private static ParameterUnmarshaller _instance = new ParameterUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static ParameterUnmarshaller Instance { get { return _instance; } } } }
115
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudformation-2010-05-15.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.CloudFormation.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; namespace Amazon.CloudFormation.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for PhysicalResourceIdContextKeyValuePair Object /// </summary> public class PhysicalResourceIdContextKeyValuePairUnmarshaller : IUnmarshaller<PhysicalResourceIdContextKeyValuePair, XmlUnmarshallerContext>, IUnmarshaller<PhysicalResourceIdContextKeyValuePair, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public PhysicalResourceIdContextKeyValuePair Unmarshall(XmlUnmarshallerContext context) { PhysicalResourceIdContextKeyValuePair unmarshalledObject = new PhysicalResourceIdContextKeyValuePair(); int originalDepth = context.CurrentDepth; int targetDepth = originalDepth + 1; if (context.IsStartOfDocument) targetDepth += 2; while (context.ReadAtDepth(originalDepth)) { if (context.IsStartElement || context.IsAttribute) { if (context.TestExpression("Key", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Key = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Value", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Value = unmarshaller.Unmarshall(context); continue; } } else if (context.IsEndElement && context.CurrentDepth < originalDepth) { return unmarshalledObject; } } return unmarshalledObject; } /// <summary> /// Unmarshaller error response to exception. /// </summary> /// <param name="context"></param> /// <returns></returns> public PhysicalResourceIdContextKeyValuePair Unmarshall(JsonUnmarshallerContext context) { return null; } private static PhysicalResourceIdContextKeyValuePairUnmarshaller _instance = new PhysicalResourceIdContextKeyValuePairUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static PhysicalResourceIdContextKeyValuePairUnmarshaller Instance { get { return _instance; } } } }
103
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudformation-2010-05-15.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.CloudFormation.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; namespace Amazon.CloudFormation.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for PropertyDifference Object /// </summary> public class PropertyDifferenceUnmarshaller : IUnmarshaller<PropertyDifference, XmlUnmarshallerContext>, IUnmarshaller<PropertyDifference, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public PropertyDifference Unmarshall(XmlUnmarshallerContext context) { PropertyDifference unmarshalledObject = new PropertyDifference(); int originalDepth = context.CurrentDepth; int targetDepth = originalDepth + 1; if (context.IsStartOfDocument) targetDepth += 2; while (context.ReadAtDepth(originalDepth)) { if (context.IsStartElement || context.IsAttribute) { if (context.TestExpression("ActualValue", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.ActualValue = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("DifferenceType", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.DifferenceType = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("ExpectedValue", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.ExpectedValue = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("PropertyPath", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.PropertyPath = unmarshaller.Unmarshall(context); continue; } } else if (context.IsEndElement && context.CurrentDepth < originalDepth) { return unmarshalledObject; } } return unmarshalledObject; } /// <summary> /// Unmarshaller error response to exception. /// </summary> /// <param name="context"></param> /// <returns></returns> public PropertyDifference Unmarshall(JsonUnmarshallerContext context) { return null; } private static PropertyDifferenceUnmarshaller _instance = new PropertyDifferenceUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static PropertyDifferenceUnmarshaller Instance { get { return _instance; } } } }
115
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudformation-2010-05-15.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.CloudFormation.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; namespace Amazon.CloudFormation.Model.Internal.MarshallTransformations { /// <summary> /// PublishType Request Marshaller /// </summary> public class PublishTypeRequestMarshaller : IMarshaller<IRequest, PublishTypeRequest> , 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((PublishTypeRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(PublishTypeRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.CloudFormation"); request.Parameters.Add("Action", "PublishType"); request.Parameters.Add("Version", "2010-05-15"); if(publicRequest != null) { if(publicRequest.IsSetArn()) { request.Parameters.Add("Arn", StringUtils.FromString(publicRequest.Arn)); } if(publicRequest.IsSetPublicVersionNumber()) { request.Parameters.Add("PublicVersionNumber", StringUtils.FromString(publicRequest.PublicVersionNumber)); } if(publicRequest.IsSetType()) { request.Parameters.Add("Type", StringUtils.FromString(publicRequest.Type)); } if(publicRequest.IsSetTypeName()) { request.Parameters.Add("TypeName", StringUtils.FromString(publicRequest.TypeName)); } } return request; } private static PublishTypeRequestMarshaller _instance = new PublishTypeRequestMarshaller(); internal static PublishTypeRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static PublishTypeRequestMarshaller Instance { get { return _instance; } } } }
99
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudformation-2010-05-15.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.CloudFormation.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; namespace Amazon.CloudFormation.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for PublishType operation /// </summary> public class PublishTypeResponseUnmarshaller : XmlResponseUnmarshaller { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(XmlUnmarshallerContext context) { PublishTypeResponse response = new PublishTypeResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.IsStartElement) { if(context.TestExpression("PublishTypeResult", 2)) { UnmarshallResult(context, response); continue; } if (context.TestExpression("ResponseMetadata", 2)) { response.ResponseMetadata = ResponseMetadataUnmarshaller.Instance.Unmarshall(context); } } } return response; } private static void UnmarshallResult(XmlUnmarshallerContext context, PublishTypeResponse response) { int originalDepth = context.CurrentDepth; int targetDepth = originalDepth + 1; if (context.IsStartOfDocument) targetDepth += 2; while (context.ReadAtDepth(originalDepth)) { if (context.IsStartElement || context.IsAttribute) { if (context.TestExpression("PublicTypeArn", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.PublicTypeArn = unmarshaller.Unmarshall(context); continue; } } } return; } /// <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(XmlUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) { ErrorResponse errorResponse = ErrorResponseUnmarshaller.GetInstance().Unmarshall(context); errorResponse.InnerException = innerException; errorResponse.StatusCode = statusCode; var responseBodyBytes = context.GetResponseBodyBytes(); using (var streamCopy = new MemoryStream(responseBodyBytes)) using (var contextCopy = new XmlUnmarshallerContext(streamCopy, false, null)) { if (errorResponse.Code != null && errorResponse.Code.Equals("CFNRegistryException")) { return CFNRegistryExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("TypeNotFoundException")) { return TypeNotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonCloudFormationException(errorResponse.Message, innerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, statusCode); } private static PublishTypeResponseUnmarshaller _instance = new PublishTypeResponseUnmarshaller(); internal static PublishTypeResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static PublishTypeResponseUnmarshaller Instance { get { return _instance; } } } }
145
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudformation-2010-05-15.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.CloudFormation.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; namespace Amazon.CloudFormation.Model.Internal.MarshallTransformations { /// <summary> /// RecordHandlerProgress Request Marshaller /// </summary> public class RecordHandlerProgressRequestMarshaller : IMarshaller<IRequest, RecordHandlerProgressRequest> , 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((RecordHandlerProgressRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(RecordHandlerProgressRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.CloudFormation"); request.Parameters.Add("Action", "RecordHandlerProgress"); request.Parameters.Add("Version", "2010-05-15"); if(publicRequest != null) { if(publicRequest.IsSetBearerToken()) { request.Parameters.Add("BearerToken", StringUtils.FromString(publicRequest.BearerToken)); } if(publicRequest.IsSetClientRequestToken()) { request.Parameters.Add("ClientRequestToken", StringUtils.FromString(publicRequest.ClientRequestToken)); } if(publicRequest.IsSetCurrentOperationStatus()) { request.Parameters.Add("CurrentOperationStatus", StringUtils.FromString(publicRequest.CurrentOperationStatus)); } if(publicRequest.IsSetErrorCode()) { request.Parameters.Add("ErrorCode", StringUtils.FromString(publicRequest.ErrorCode)); } if(publicRequest.IsSetOperationStatus()) { request.Parameters.Add("OperationStatus", StringUtils.FromString(publicRequest.OperationStatus)); } if(publicRequest.IsSetResourceModel()) { request.Parameters.Add("ResourceModel", StringUtils.FromString(publicRequest.ResourceModel)); } if(publicRequest.IsSetStatusMessage()) { request.Parameters.Add("StatusMessage", StringUtils.FromString(publicRequest.StatusMessage)); } } return request; } private static RecordHandlerProgressRequestMarshaller _instance = new RecordHandlerProgressRequestMarshaller(); internal static RecordHandlerProgressRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static RecordHandlerProgressRequestMarshaller Instance { get { return _instance; } } } }
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 cloudformation-2010-05-15.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.CloudFormation.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; namespace Amazon.CloudFormation.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for RecordHandlerProgress operation /// </summary> public class RecordHandlerProgressResponseUnmarshaller : XmlResponseUnmarshaller { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(XmlUnmarshallerContext context) { RecordHandlerProgressResponse response = new RecordHandlerProgressResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.IsStartElement) { if(context.TestExpression("RecordHandlerProgressResult", 2)) { UnmarshallResult(context, response); continue; } if (context.TestExpression("ResponseMetadata", 2)) { response.ResponseMetadata = ResponseMetadataUnmarshaller.Instance.Unmarshall(context); } } } return response; } [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId="response")] private static void UnmarshallResult(XmlUnmarshallerContext context, RecordHandlerProgressResponse response) { int originalDepth = context.CurrentDepth; int targetDepth = originalDepth + 1; if (context.IsStartOfDocument) targetDepth += 2; while (context.ReadAtDepth(originalDepth)) { if (context.IsStartElement || context.IsAttribute) { } } return; } /// <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(XmlUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) { ErrorResponse errorResponse = ErrorResponseUnmarshaller.GetInstance().Unmarshall(context); errorResponse.InnerException = innerException; errorResponse.StatusCode = statusCode; var responseBodyBytes = context.GetResponseBodyBytes(); using (var streamCopy = new MemoryStream(responseBodyBytes)) using (var contextCopy = new XmlUnmarshallerContext(streamCopy, false, null)) { if (errorResponse.Code != null && errorResponse.Code.Equals("InvalidStateTransition")) { return InvalidStateTransitionExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ConditionalCheckFailed")) { return OperationStatusCheckFailedExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonCloudFormationException(errorResponse.Message, innerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, statusCode); } private static RecordHandlerProgressResponseUnmarshaller _instance = new RecordHandlerProgressResponseUnmarshaller(); internal static RecordHandlerProgressResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static RecordHandlerProgressResponseUnmarshaller 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 cloudformation-2010-05-15.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.CloudFormation.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; namespace Amazon.CloudFormation.Model.Internal.MarshallTransformations { /// <summary> /// RegisterPublisher Request Marshaller /// </summary> public class RegisterPublisherRequestMarshaller : IMarshaller<IRequest, RegisterPublisherRequest> , 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((RegisterPublisherRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(RegisterPublisherRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.CloudFormation"); request.Parameters.Add("Action", "RegisterPublisher"); request.Parameters.Add("Version", "2010-05-15"); if(publicRequest != null) { if(publicRequest.IsSetAcceptTermsAndConditions()) { request.Parameters.Add("AcceptTermsAndConditions", StringUtils.FromBool(publicRequest.AcceptTermsAndConditions)); } if(publicRequest.IsSetConnectionArn()) { request.Parameters.Add("ConnectionArn", StringUtils.FromString(publicRequest.ConnectionArn)); } } return request; } private static RegisterPublisherRequestMarshaller _instance = new RegisterPublisherRequestMarshaller(); internal static RegisterPublisherRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static RegisterPublisherRequestMarshaller Instance { get { return _instance; } } } }
91
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudformation-2010-05-15.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.CloudFormation.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; namespace Amazon.CloudFormation.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for RegisterPublisher operation /// </summary> public class RegisterPublisherResponseUnmarshaller : XmlResponseUnmarshaller { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(XmlUnmarshallerContext context) { RegisterPublisherResponse response = new RegisterPublisherResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.IsStartElement) { if(context.TestExpression("RegisterPublisherResult", 2)) { UnmarshallResult(context, response); continue; } if (context.TestExpression("ResponseMetadata", 2)) { response.ResponseMetadata = ResponseMetadataUnmarshaller.Instance.Unmarshall(context); } } } return response; } private static void UnmarshallResult(XmlUnmarshallerContext context, RegisterPublisherResponse response) { int originalDepth = context.CurrentDepth; int targetDepth = originalDepth + 1; if (context.IsStartOfDocument) targetDepth += 2; while (context.ReadAtDepth(originalDepth)) { if (context.IsStartElement || context.IsAttribute) { if (context.TestExpression("PublisherId", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.PublisherId = unmarshaller.Unmarshall(context); continue; } } } return; } /// <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(XmlUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) { ErrorResponse errorResponse = ErrorResponseUnmarshaller.GetInstance().Unmarshall(context); errorResponse.InnerException = innerException; errorResponse.StatusCode = statusCode; var responseBodyBytes = context.GetResponseBodyBytes(); using (var streamCopy = new MemoryStream(responseBodyBytes)) using (var contextCopy = new XmlUnmarshallerContext(streamCopy, false, null)) { if (errorResponse.Code != null && errorResponse.Code.Equals("CFNRegistryException")) { return CFNRegistryExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonCloudFormationException(errorResponse.Message, innerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, statusCode); } private static RegisterPublisherResponseUnmarshaller _instance = new RegisterPublisherResponseUnmarshaller(); internal static RegisterPublisherResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static RegisterPublisherResponseUnmarshaller Instance { get { return _instance; } } } }
141
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudformation-2010-05-15.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.CloudFormation.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; namespace Amazon.CloudFormation.Model.Internal.MarshallTransformations { /// <summary> /// RegisterType Request Marshaller /// </summary> public class RegisterTypeRequestMarshaller : IMarshaller<IRequest, RegisterTypeRequest> , 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((RegisterTypeRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(RegisterTypeRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.CloudFormation"); request.Parameters.Add("Action", "RegisterType"); request.Parameters.Add("Version", "2010-05-15"); if(publicRequest != null) { if(publicRequest.IsSetClientRequestToken()) { request.Parameters.Add("ClientRequestToken", StringUtils.FromString(publicRequest.ClientRequestToken)); } if(publicRequest.IsSetExecutionRoleArn()) { request.Parameters.Add("ExecutionRoleArn", StringUtils.FromString(publicRequest.ExecutionRoleArn)); } if(publicRequest.IsSetLoggingConfig()) { if(publicRequest.LoggingConfig.IsSetLogGroupName()) { request.Parameters.Add("LoggingConfig" + "." + "LogGroupName", StringUtils.FromString(publicRequest.LoggingConfig.LogGroupName)); } if(publicRequest.LoggingConfig.IsSetLogRoleArn()) { request.Parameters.Add("LoggingConfig" + "." + "LogRoleArn", StringUtils.FromString(publicRequest.LoggingConfig.LogRoleArn)); } } if(publicRequest.IsSetSchemaHandlerPackage()) { request.Parameters.Add("SchemaHandlerPackage", StringUtils.FromString(publicRequest.SchemaHandlerPackage)); } if(publicRequest.IsSetType()) { request.Parameters.Add("Type", StringUtils.FromString(publicRequest.Type)); } if(publicRequest.IsSetTypeName()) { request.Parameters.Add("TypeName", StringUtils.FromString(publicRequest.TypeName)); } } return request; } private static RegisterTypeRequestMarshaller _instance = new RegisterTypeRequestMarshaller(); internal static RegisterTypeRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static RegisterTypeRequestMarshaller 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 cloudformation-2010-05-15.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.CloudFormation.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; namespace Amazon.CloudFormation.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for RegisterType operation /// </summary> public class RegisterTypeResponseUnmarshaller : XmlResponseUnmarshaller { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(XmlUnmarshallerContext context) { RegisterTypeResponse response = new RegisterTypeResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.IsStartElement) { if(context.TestExpression("RegisterTypeResult", 2)) { UnmarshallResult(context, response); continue; } if (context.TestExpression("ResponseMetadata", 2)) { response.ResponseMetadata = ResponseMetadataUnmarshaller.Instance.Unmarshall(context); } } } return response; } private static void UnmarshallResult(XmlUnmarshallerContext context, RegisterTypeResponse response) { int originalDepth = context.CurrentDepth; int targetDepth = originalDepth + 1; if (context.IsStartOfDocument) targetDepth += 2; while (context.ReadAtDepth(originalDepth)) { if (context.IsStartElement || context.IsAttribute) { if (context.TestExpression("RegistrationToken", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.RegistrationToken = unmarshaller.Unmarshall(context); continue; } } } return; } /// <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(XmlUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) { ErrorResponse errorResponse = ErrorResponseUnmarshaller.GetInstance().Unmarshall(context); errorResponse.InnerException = innerException; errorResponse.StatusCode = statusCode; var responseBodyBytes = context.GetResponseBodyBytes(); using (var streamCopy = new MemoryStream(responseBodyBytes)) using (var contextCopy = new XmlUnmarshallerContext(streamCopy, false, null)) { if (errorResponse.Code != null && errorResponse.Code.Equals("CFNRegistryException")) { return CFNRegistryExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonCloudFormationException(errorResponse.Message, innerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, statusCode); } private static RegisterTypeResponseUnmarshaller _instance = new RegisterTypeResponseUnmarshaller(); internal static RegisterTypeResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static RegisterTypeResponseUnmarshaller Instance { get { return _instance; } } } }
141
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudformation-2010-05-15.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.CloudFormation.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; namespace Amazon.CloudFormation.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for RequiredActivatedType Object /// </summary> public class RequiredActivatedTypeUnmarshaller : IUnmarshaller<RequiredActivatedType, XmlUnmarshallerContext>, IUnmarshaller<RequiredActivatedType, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public RequiredActivatedType Unmarshall(XmlUnmarshallerContext context) { RequiredActivatedType unmarshalledObject = new RequiredActivatedType(); int originalDepth = context.CurrentDepth; int targetDepth = originalDepth + 1; if (context.IsStartOfDocument) targetDepth += 2; while (context.ReadAtDepth(originalDepth)) { if (context.IsStartElement || context.IsAttribute) { if (context.TestExpression("OriginalTypeName", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.OriginalTypeName = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("PublisherId", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.PublisherId = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("SupportedMajorVersions/member", targetDepth)) { var unmarshaller = IntUnmarshaller.Instance; var item = unmarshaller.Unmarshall(context); unmarshalledObject.SupportedMajorVersions.Add(item); continue; } if (context.TestExpression("TypeNameAlias", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.TypeNameAlias = unmarshaller.Unmarshall(context); continue; } } else if (context.IsEndElement && context.CurrentDepth < originalDepth) { return unmarshalledObject; } } return unmarshalledObject; } /// <summary> /// Unmarshaller error response to exception. /// </summary> /// <param name="context"></param> /// <returns></returns> public RequiredActivatedType Unmarshall(JsonUnmarshallerContext context) { return null; } private static RequiredActivatedTypeUnmarshaller _instance = new RequiredActivatedTypeUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static RequiredActivatedTypeUnmarshaller 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 cloudformation-2010-05-15.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.CloudFormation.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; namespace Amazon.CloudFormation.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for ResourceChangeDetail Object /// </summary> public class ResourceChangeDetailUnmarshaller : IUnmarshaller<ResourceChangeDetail, XmlUnmarshallerContext>, IUnmarshaller<ResourceChangeDetail, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public ResourceChangeDetail Unmarshall(XmlUnmarshallerContext context) { ResourceChangeDetail unmarshalledObject = new ResourceChangeDetail(); int originalDepth = context.CurrentDepth; int targetDepth = originalDepth + 1; if (context.IsStartOfDocument) targetDepth += 2; while (context.ReadAtDepth(originalDepth)) { if (context.IsStartElement || context.IsAttribute) { if (context.TestExpression("CausingEntity", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.CausingEntity = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("ChangeSource", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.ChangeSource = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Evaluation", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Evaluation = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Target", targetDepth)) { var unmarshaller = ResourceTargetDefinitionUnmarshaller.Instance; unmarshalledObject.Target = unmarshaller.Unmarshall(context); continue; } } else if (context.IsEndElement && context.CurrentDepth < originalDepth) { return unmarshalledObject; } } return unmarshalledObject; } /// <summary> /// Unmarshaller error response to exception. /// </summary> /// <param name="context"></param> /// <returns></returns> public ResourceChangeDetail Unmarshall(JsonUnmarshallerContext context) { return null; } private static ResourceChangeDetailUnmarshaller _instance = new ResourceChangeDetailUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static ResourceChangeDetailUnmarshaller Instance { get { return _instance; } } } }
115
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudformation-2010-05-15.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.CloudFormation.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; namespace Amazon.CloudFormation.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for ResourceChange Object /// </summary> public class ResourceChangeUnmarshaller : IUnmarshaller<ResourceChange, XmlUnmarshallerContext>, IUnmarshaller<ResourceChange, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public ResourceChange Unmarshall(XmlUnmarshallerContext context) { ResourceChange unmarshalledObject = new ResourceChange(); int originalDepth = context.CurrentDepth; int targetDepth = originalDepth + 1; if (context.IsStartOfDocument) targetDepth += 2; while (context.ReadAtDepth(originalDepth)) { if (context.IsStartElement || context.IsAttribute) { if (context.TestExpression("Action", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Action = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("ChangeSetId", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.ChangeSetId = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Details/member", targetDepth)) { var unmarshaller = ResourceChangeDetailUnmarshaller.Instance; var item = unmarshaller.Unmarshall(context); unmarshalledObject.Details.Add(item); continue; } if (context.TestExpression("LogicalResourceId", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.LogicalResourceId = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("ModuleInfo", targetDepth)) { var unmarshaller = ModuleInfoUnmarshaller.Instance; unmarshalledObject.ModuleInfo = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("PhysicalResourceId", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.PhysicalResourceId = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Replacement", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Replacement = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("ResourceType", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.ResourceType = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Scope/member", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; var item = unmarshaller.Unmarshall(context); unmarshalledObject.Scope.Add(item); continue; } } else if (context.IsEndElement && context.CurrentDepth < originalDepth) { return unmarshalledObject; } } return unmarshalledObject; } /// <summary> /// Unmarshaller error response to exception. /// </summary> /// <param name="context"></param> /// <returns></returns> public ResourceChange Unmarshall(JsonUnmarshallerContext context) { return null; } private static ResourceChangeUnmarshaller _instance = new ResourceChangeUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static ResourceChangeUnmarshaller 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 cloudformation-2010-05-15.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.CloudFormation.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; namespace Amazon.CloudFormation.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for ResourceIdentifierSummary Object /// </summary> public class ResourceIdentifierSummaryUnmarshaller : IUnmarshaller<ResourceIdentifierSummary, XmlUnmarshallerContext>, IUnmarshaller<ResourceIdentifierSummary, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public ResourceIdentifierSummary Unmarshall(XmlUnmarshallerContext context) { ResourceIdentifierSummary unmarshalledObject = new ResourceIdentifierSummary(); int originalDepth = context.CurrentDepth; int targetDepth = originalDepth + 1; if (context.IsStartOfDocument) targetDepth += 2; while (context.ReadAtDepth(originalDepth)) { if (context.IsStartElement || context.IsAttribute) { if (context.TestExpression("LogicalResourceIds/member", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; var item = unmarshaller.Unmarshall(context); unmarshalledObject.LogicalResourceIds.Add(item); continue; } if (context.TestExpression("ResourceIdentifiers/member", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; var item = unmarshaller.Unmarshall(context); unmarshalledObject.ResourceIdentifiers.Add(item); continue; } if (context.TestExpression("ResourceType", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.ResourceType = unmarshaller.Unmarshall(context); continue; } } else if (context.IsEndElement && context.CurrentDepth < originalDepth) { return unmarshalledObject; } } return unmarshalledObject; } /// <summary> /// Unmarshaller error response to exception. /// </summary> /// <param name="context"></param> /// <returns></returns> public ResourceIdentifierSummary Unmarshall(JsonUnmarshallerContext context) { return null; } private static ResourceIdentifierSummaryUnmarshaller _instance = new ResourceIdentifierSummaryUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static ResourceIdentifierSummaryUnmarshaller Instance { get { return _instance; } } } }
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 cloudformation-2010-05-15.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.CloudFormation.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; namespace Amazon.CloudFormation.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for ResourceTargetDefinition Object /// </summary> public class ResourceTargetDefinitionUnmarshaller : IUnmarshaller<ResourceTargetDefinition, XmlUnmarshallerContext>, IUnmarshaller<ResourceTargetDefinition, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public ResourceTargetDefinition Unmarshall(XmlUnmarshallerContext context) { ResourceTargetDefinition unmarshalledObject = new ResourceTargetDefinition(); int originalDepth = context.CurrentDepth; int targetDepth = originalDepth + 1; if (context.IsStartOfDocument) targetDepth += 2; while (context.ReadAtDepth(originalDepth)) { if (context.IsStartElement || context.IsAttribute) { if (context.TestExpression("Attribute", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Attribute = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Name", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Name = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("RequiresRecreation", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.RequiresRecreation = unmarshaller.Unmarshall(context); continue; } } else if (context.IsEndElement && context.CurrentDepth < originalDepth) { return unmarshalledObject; } } return unmarshalledObject; } /// <summary> /// Unmarshaller error response to exception. /// </summary> /// <param name="context"></param> /// <returns></returns> public ResourceTargetDefinition Unmarshall(JsonUnmarshallerContext context) { return null; } private static ResourceTargetDefinitionUnmarshaller _instance = new ResourceTargetDefinitionUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static ResourceTargetDefinitionUnmarshaller Instance { get { return _instance; } } } }
109
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudformation-2010-05-15.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.CloudFormation.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; namespace Amazon.CloudFormation.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for RollbackConfiguration Object /// </summary> public class RollbackConfigurationUnmarshaller : IUnmarshaller<RollbackConfiguration, XmlUnmarshallerContext>, IUnmarshaller<RollbackConfiguration, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public RollbackConfiguration Unmarshall(XmlUnmarshallerContext context) { RollbackConfiguration unmarshalledObject = new RollbackConfiguration(); int originalDepth = context.CurrentDepth; int targetDepth = originalDepth + 1; if (context.IsStartOfDocument) targetDepth += 2; while (context.ReadAtDepth(originalDepth)) { if (context.IsStartElement || context.IsAttribute) { if (context.TestExpression("MonitoringTimeInMinutes", targetDepth)) { var unmarshaller = IntUnmarshaller.Instance; unmarshalledObject.MonitoringTimeInMinutes = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("RollbackTriggers/member", targetDepth)) { var unmarshaller = RollbackTriggerUnmarshaller.Instance; var item = unmarshaller.Unmarshall(context); unmarshalledObject.RollbackTriggers.Add(item); continue; } } else if (context.IsEndElement && context.CurrentDepth < originalDepth) { return unmarshalledObject; } } return unmarshalledObject; } /// <summary> /// Unmarshaller error response to exception. /// </summary> /// <param name="context"></param> /// <returns></returns> public RollbackConfiguration Unmarshall(JsonUnmarshallerContext context) { return null; } private static RollbackConfigurationUnmarshaller _instance = new RollbackConfigurationUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static RollbackConfigurationUnmarshaller 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 cloudformation-2010-05-15.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.CloudFormation.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; namespace Amazon.CloudFormation.Model.Internal.MarshallTransformations { /// <summary> /// RollbackStack Request Marshaller /// </summary> public class RollbackStackRequestMarshaller : IMarshaller<IRequest, RollbackStackRequest> , 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((RollbackStackRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(RollbackStackRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.CloudFormation"); request.Parameters.Add("Action", "RollbackStack"); request.Parameters.Add("Version", "2010-05-15"); if(publicRequest != null) { if(publicRequest.IsSetClientRequestToken()) { request.Parameters.Add("ClientRequestToken", StringUtils.FromString(publicRequest.ClientRequestToken)); } if(publicRequest.IsSetRoleARN()) { request.Parameters.Add("RoleARN", StringUtils.FromString(publicRequest.RoleARN)); } if(publicRequest.IsSetStackName()) { request.Parameters.Add("StackName", StringUtils.FromString(publicRequest.StackName)); } } return request; } private static RollbackStackRequestMarshaller _instance = new RollbackStackRequestMarshaller(); internal static RollbackStackRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static RollbackStackRequestMarshaller Instance { get { return _instance; } } } }
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 cloudformation-2010-05-15.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.CloudFormation.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; namespace Amazon.CloudFormation.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for RollbackStack operation /// </summary> public class RollbackStackResponseUnmarshaller : XmlResponseUnmarshaller { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(XmlUnmarshallerContext context) { RollbackStackResponse response = new RollbackStackResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.IsStartElement) { if(context.TestExpression("RollbackStackResult", 2)) { UnmarshallResult(context, response); continue; } if (context.TestExpression("ResponseMetadata", 2)) { response.ResponseMetadata = ResponseMetadataUnmarshaller.Instance.Unmarshall(context); } } } return response; } private static void UnmarshallResult(XmlUnmarshallerContext context, RollbackStackResponse response) { int originalDepth = context.CurrentDepth; int targetDepth = originalDepth + 1; if (context.IsStartOfDocument) targetDepth += 2; while (context.ReadAtDepth(originalDepth)) { if (context.IsStartElement || context.IsAttribute) { if (context.TestExpression("StackId", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.StackId = unmarshaller.Unmarshall(context); continue; } } } return; } /// <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(XmlUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) { ErrorResponse errorResponse = ErrorResponseUnmarshaller.GetInstance().Unmarshall(context); errorResponse.InnerException = innerException; errorResponse.StatusCode = statusCode; var responseBodyBytes = context.GetResponseBodyBytes(); using (var streamCopy = new MemoryStream(responseBodyBytes)) using (var contextCopy = new XmlUnmarshallerContext(streamCopy, false, null)) { if (errorResponse.Code != null && errorResponse.Code.Equals("TokenAlreadyExistsException")) { return TokenAlreadyExistsExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonCloudFormationException(errorResponse.Message, innerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, statusCode); } private static RollbackStackResponseUnmarshaller _instance = new RollbackStackResponseUnmarshaller(); internal static RollbackStackResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static RollbackStackResponseUnmarshaller Instance { get { return _instance; } } } }
141
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudformation-2010-05-15.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.CloudFormation.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; namespace Amazon.CloudFormation.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for RollbackTrigger Object /// </summary> public class RollbackTriggerUnmarshaller : IUnmarshaller<RollbackTrigger, XmlUnmarshallerContext>, IUnmarshaller<RollbackTrigger, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public RollbackTrigger Unmarshall(XmlUnmarshallerContext context) { RollbackTrigger unmarshalledObject = new RollbackTrigger(); int originalDepth = context.CurrentDepth; int targetDepth = originalDepth + 1; if (context.IsStartOfDocument) targetDepth += 2; while (context.ReadAtDepth(originalDepth)) { if (context.IsStartElement || context.IsAttribute) { if (context.TestExpression("Arn", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Arn = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Type", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Type = unmarshaller.Unmarshall(context); continue; } } else if (context.IsEndElement && context.CurrentDepth < originalDepth) { return unmarshalledObject; } } return unmarshalledObject; } /// <summary> /// Unmarshaller error response to exception. /// </summary> /// <param name="context"></param> /// <returns></returns> public RollbackTrigger Unmarshall(JsonUnmarshallerContext context) { return null; } private static RollbackTriggerUnmarshaller _instance = new RollbackTriggerUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static RollbackTriggerUnmarshaller Instance { get { return _instance; } } } }
103
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudformation-2010-05-15.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.CloudFormation.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; namespace Amazon.CloudFormation.Model.Internal.MarshallTransformations { /// <summary> /// SetStackPolicy Request Marshaller /// </summary> public class SetStackPolicyRequestMarshaller : IMarshaller<IRequest, SetStackPolicyRequest> , 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((SetStackPolicyRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(SetStackPolicyRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.CloudFormation"); request.Parameters.Add("Action", "SetStackPolicy"); request.Parameters.Add("Version", "2010-05-15"); if(publicRequest != null) { if(publicRequest.IsSetStackName()) { request.Parameters.Add("StackName", StringUtils.FromString(publicRequest.StackName)); } if(publicRequest.IsSetStackPolicyBody()) { request.Parameters.Add("StackPolicyBody", StringUtils.FromString(publicRequest.StackPolicyBody)); } if(publicRequest.IsSetStackPolicyURL()) { request.Parameters.Add("StackPolicyURL", StringUtils.FromString(publicRequest.StackPolicyURL)); } } return request; } private static SetStackPolicyRequestMarshaller _instance = new SetStackPolicyRequestMarshaller(); internal static SetStackPolicyRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static SetStackPolicyRequestMarshaller Instance { get { return _instance; } } } }
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 cloudformation-2010-05-15.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.CloudFormation.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; namespace Amazon.CloudFormation.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for SetStackPolicy operation /// </summary> public class SetStackPolicyResponseUnmarshaller : XmlResponseUnmarshaller { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(XmlUnmarshallerContext context) { SetStackPolicyResponse response = new SetStackPolicyResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.IsStartElement) { if(context.TestExpression("SetStackPolicyResult", 2)) { UnmarshallResult(context, response); continue; } if (context.TestExpression("ResponseMetadata", 2)) { response.ResponseMetadata = ResponseMetadataUnmarshaller.Instance.Unmarshall(context); } } } return response; } [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId="response")] private static void UnmarshallResult(XmlUnmarshallerContext context, SetStackPolicyResponse response) { int originalDepth = context.CurrentDepth; int targetDepth = originalDepth + 1; if (context.IsStartOfDocument) targetDepth += 2; while (context.ReadAtDepth(originalDepth)) { if (context.IsStartElement || context.IsAttribute) { } } return; } /// <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(XmlUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) { ErrorResponse errorResponse = ErrorResponseUnmarshaller.GetInstance().Unmarshall(context); errorResponse.InnerException = innerException; errorResponse.StatusCode = statusCode; var responseBodyBytes = context.GetResponseBodyBytes(); using (var streamCopy = new MemoryStream(responseBodyBytes)) using (var contextCopy = new XmlUnmarshallerContext(streamCopy, false, null)) { } return new AmazonCloudFormationException(errorResponse.Message, innerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, statusCode); } private static SetStackPolicyResponseUnmarshaller _instance = new SetStackPolicyResponseUnmarshaller(); internal static SetStackPolicyResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static SetStackPolicyResponseUnmarshaller Instance { get { return _instance; } } } }
132
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudformation-2010-05-15.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.CloudFormation.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; namespace Amazon.CloudFormation.Model.Internal.MarshallTransformations { /// <summary> /// SetTypeConfiguration Request Marshaller /// </summary> public class SetTypeConfigurationRequestMarshaller : IMarshaller<IRequest, SetTypeConfigurationRequest> , 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((SetTypeConfigurationRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(SetTypeConfigurationRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.CloudFormation"); request.Parameters.Add("Action", "SetTypeConfiguration"); request.Parameters.Add("Version", "2010-05-15"); if(publicRequest != null) { if(publicRequest.IsSetConfiguration()) { request.Parameters.Add("Configuration", StringUtils.FromString(publicRequest.Configuration)); } if(publicRequest.IsSetConfigurationAlias()) { request.Parameters.Add("ConfigurationAlias", StringUtils.FromString(publicRequest.ConfigurationAlias)); } if(publicRequest.IsSetType()) { request.Parameters.Add("Type", StringUtils.FromString(publicRequest.Type)); } if(publicRequest.IsSetTypeArn()) { request.Parameters.Add("TypeArn", StringUtils.FromString(publicRequest.TypeArn)); } if(publicRequest.IsSetTypeName()) { request.Parameters.Add("TypeName", StringUtils.FromString(publicRequest.TypeName)); } } return request; } private static SetTypeConfigurationRequestMarshaller _instance = new SetTypeConfigurationRequestMarshaller(); internal static SetTypeConfigurationRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static SetTypeConfigurationRequestMarshaller Instance { get { return _instance; } } } }
103
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudformation-2010-05-15.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.CloudFormation.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; namespace Amazon.CloudFormation.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for SetTypeConfiguration operation /// </summary> public class SetTypeConfigurationResponseUnmarshaller : XmlResponseUnmarshaller { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(XmlUnmarshallerContext context) { SetTypeConfigurationResponse response = new SetTypeConfigurationResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.IsStartElement) { if(context.TestExpression("SetTypeConfigurationResult", 2)) { UnmarshallResult(context, response); continue; } if (context.TestExpression("ResponseMetadata", 2)) { response.ResponseMetadata = ResponseMetadataUnmarshaller.Instance.Unmarshall(context); } } } return response; } private static void UnmarshallResult(XmlUnmarshallerContext context, SetTypeConfigurationResponse response) { int originalDepth = context.CurrentDepth; int targetDepth = originalDepth + 1; if (context.IsStartOfDocument) targetDepth += 2; while (context.ReadAtDepth(originalDepth)) { if (context.IsStartElement || context.IsAttribute) { if (context.TestExpression("ConfigurationArn", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.ConfigurationArn = unmarshaller.Unmarshall(context); continue; } } } return; } /// <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(XmlUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) { ErrorResponse errorResponse = ErrorResponseUnmarshaller.GetInstance().Unmarshall(context); errorResponse.InnerException = innerException; errorResponse.StatusCode = statusCode; var responseBodyBytes = context.GetResponseBodyBytes(); using (var streamCopy = new MemoryStream(responseBodyBytes)) using (var contextCopy = new XmlUnmarshallerContext(streamCopy, false, null)) { if (errorResponse.Code != null && errorResponse.Code.Equals("CFNRegistryException")) { return CFNRegistryExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("TypeNotFoundException")) { return TypeNotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonCloudFormationException(errorResponse.Message, innerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, statusCode); } private static SetTypeConfigurationResponseUnmarshaller _instance = new SetTypeConfigurationResponseUnmarshaller(); internal static SetTypeConfigurationResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static SetTypeConfigurationResponseUnmarshaller Instance { get { return _instance; } } } }
145
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudformation-2010-05-15.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.CloudFormation.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; namespace Amazon.CloudFormation.Model.Internal.MarshallTransformations { /// <summary> /// SetTypeDefaultVersion Request Marshaller /// </summary> public class SetTypeDefaultVersionRequestMarshaller : IMarshaller<IRequest, SetTypeDefaultVersionRequest> , 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((SetTypeDefaultVersionRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(SetTypeDefaultVersionRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.CloudFormation"); request.Parameters.Add("Action", "SetTypeDefaultVersion"); request.Parameters.Add("Version", "2010-05-15"); if(publicRequest != null) { if(publicRequest.IsSetArn()) { request.Parameters.Add("Arn", StringUtils.FromString(publicRequest.Arn)); } if(publicRequest.IsSetType()) { request.Parameters.Add("Type", StringUtils.FromString(publicRequest.Type)); } if(publicRequest.IsSetTypeName()) { request.Parameters.Add("TypeName", StringUtils.FromString(publicRequest.TypeName)); } if(publicRequest.IsSetVersionId()) { request.Parameters.Add("VersionId", StringUtils.FromString(publicRequest.VersionId)); } } return request; } private static SetTypeDefaultVersionRequestMarshaller _instance = new SetTypeDefaultVersionRequestMarshaller(); internal static SetTypeDefaultVersionRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static SetTypeDefaultVersionRequestMarshaller Instance { get { return _instance; } } } }
99
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudformation-2010-05-15.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.CloudFormation.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; namespace Amazon.CloudFormation.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for SetTypeDefaultVersion operation /// </summary> public class SetTypeDefaultVersionResponseUnmarshaller : XmlResponseUnmarshaller { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(XmlUnmarshallerContext context) { SetTypeDefaultVersionResponse response = new SetTypeDefaultVersionResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.IsStartElement) { if(context.TestExpression("SetTypeDefaultVersionResult", 2)) { UnmarshallResult(context, response); continue; } if (context.TestExpression("ResponseMetadata", 2)) { response.ResponseMetadata = ResponseMetadataUnmarshaller.Instance.Unmarshall(context); } } } return response; } [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId="response")] private static void UnmarshallResult(XmlUnmarshallerContext context, SetTypeDefaultVersionResponse response) { int originalDepth = context.CurrentDepth; int targetDepth = originalDepth + 1; if (context.IsStartOfDocument) targetDepth += 2; while (context.ReadAtDepth(originalDepth)) { if (context.IsStartElement || context.IsAttribute) { } } return; } /// <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(XmlUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) { ErrorResponse errorResponse = ErrorResponseUnmarshaller.GetInstance().Unmarshall(context); errorResponse.InnerException = innerException; errorResponse.StatusCode = statusCode; var responseBodyBytes = context.GetResponseBodyBytes(); using (var streamCopy = new MemoryStream(responseBodyBytes)) using (var contextCopy = new XmlUnmarshallerContext(streamCopy, false, null)) { if (errorResponse.Code != null && errorResponse.Code.Equals("CFNRegistryException")) { return CFNRegistryExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("TypeNotFoundException")) { return TypeNotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonCloudFormationException(errorResponse.Message, innerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, statusCode); } private static SetTypeDefaultVersionResponseUnmarshaller _instance = new SetTypeDefaultVersionResponseUnmarshaller(); internal static SetTypeDefaultVersionResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static SetTypeDefaultVersionResponseUnmarshaller 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 cloudformation-2010-05-15.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.CloudFormation.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; namespace Amazon.CloudFormation.Model.Internal.MarshallTransformations { /// <summary> /// SignalResource Request Marshaller /// </summary> public class SignalResourceRequestMarshaller : IMarshaller<IRequest, SignalResourceRequest> , 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((SignalResourceRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(SignalResourceRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.CloudFormation"); request.Parameters.Add("Action", "SignalResource"); request.Parameters.Add("Version", "2010-05-15"); if(publicRequest != null) { if(publicRequest.IsSetLogicalResourceId()) { request.Parameters.Add("LogicalResourceId", StringUtils.FromString(publicRequest.LogicalResourceId)); } if(publicRequest.IsSetStackName()) { request.Parameters.Add("StackName", StringUtils.FromString(publicRequest.StackName)); } if(publicRequest.IsSetStatus()) { request.Parameters.Add("Status", StringUtils.FromString(publicRequest.Status)); } if(publicRequest.IsSetUniqueId()) { request.Parameters.Add("UniqueId", StringUtils.FromString(publicRequest.UniqueId)); } } return request; } private static SignalResourceRequestMarshaller _instance = new SignalResourceRequestMarshaller(); internal static SignalResourceRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static SignalResourceRequestMarshaller Instance { get { return _instance; } } } }
99
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudformation-2010-05-15.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.CloudFormation.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; namespace Amazon.CloudFormation.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for SignalResource operation /// </summary> public class SignalResourceResponseUnmarshaller : XmlResponseUnmarshaller { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(XmlUnmarshallerContext context) { SignalResourceResponse response = new SignalResourceResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.IsStartElement) { if(context.TestExpression("SignalResourceResult", 2)) { UnmarshallResult(context, response); continue; } if (context.TestExpression("ResponseMetadata", 2)) { response.ResponseMetadata = ResponseMetadataUnmarshaller.Instance.Unmarshall(context); } } } return response; } [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId="response")] private static void UnmarshallResult(XmlUnmarshallerContext context, SignalResourceResponse response) { int originalDepth = context.CurrentDepth; int targetDepth = originalDepth + 1; if (context.IsStartOfDocument) targetDepth += 2; while (context.ReadAtDepth(originalDepth)) { if (context.IsStartElement || context.IsAttribute) { } } return; } /// <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(XmlUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) { ErrorResponse errorResponse = ErrorResponseUnmarshaller.GetInstance().Unmarshall(context); errorResponse.InnerException = innerException; errorResponse.StatusCode = statusCode; var responseBodyBytes = context.GetResponseBodyBytes(); using (var streamCopy = new MemoryStream(responseBodyBytes)) using (var contextCopy = new XmlUnmarshallerContext(streamCopy, false, null)) { } return new AmazonCloudFormationException(errorResponse.Message, innerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, statusCode); } private static SignalResourceResponseUnmarshaller _instance = new SignalResourceResponseUnmarshaller(); internal static SignalResourceResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static SignalResourceResponseUnmarshaller Instance { get { return _instance; } } } }
132
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudformation-2010-05-15.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.CloudFormation.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; namespace Amazon.CloudFormation.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for StackDriftInformationSummary Object /// </summary> public class StackDriftInformationSummaryUnmarshaller : IUnmarshaller<StackDriftInformationSummary, XmlUnmarshallerContext>, IUnmarshaller<StackDriftInformationSummary, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public StackDriftInformationSummary Unmarshall(XmlUnmarshallerContext context) { StackDriftInformationSummary unmarshalledObject = new StackDriftInformationSummary(); int originalDepth = context.CurrentDepth; int targetDepth = originalDepth + 1; if (context.IsStartOfDocument) targetDepth += 2; while (context.ReadAtDepth(originalDepth)) { if (context.IsStartElement || context.IsAttribute) { if (context.TestExpression("LastCheckTimestamp", targetDepth)) { var unmarshaller = DateTimeUnmarshaller.Instance; unmarshalledObject.LastCheckTimestamp = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("StackDriftStatus", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.StackDriftStatus = unmarshaller.Unmarshall(context); continue; } } else if (context.IsEndElement && context.CurrentDepth < originalDepth) { return unmarshalledObject; } } return unmarshalledObject; } /// <summary> /// Unmarshaller error response to exception. /// </summary> /// <param name="context"></param> /// <returns></returns> public StackDriftInformationSummary Unmarshall(JsonUnmarshallerContext context) { return null; } private static StackDriftInformationSummaryUnmarshaller _instance = new StackDriftInformationSummaryUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static StackDriftInformationSummaryUnmarshaller Instance { get { return _instance; } } } }
103
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudformation-2010-05-15.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.CloudFormation.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; namespace Amazon.CloudFormation.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for StackDriftInformation Object /// </summary> public class StackDriftInformationUnmarshaller : IUnmarshaller<StackDriftInformation, XmlUnmarshallerContext>, IUnmarshaller<StackDriftInformation, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public StackDriftInformation Unmarshall(XmlUnmarshallerContext context) { StackDriftInformation unmarshalledObject = new StackDriftInformation(); int originalDepth = context.CurrentDepth; int targetDepth = originalDepth + 1; if (context.IsStartOfDocument) targetDepth += 2; while (context.ReadAtDepth(originalDepth)) { if (context.IsStartElement || context.IsAttribute) { if (context.TestExpression("LastCheckTimestamp", targetDepth)) { var unmarshaller = DateTimeUnmarshaller.Instance; unmarshalledObject.LastCheckTimestamp = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("StackDriftStatus", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.StackDriftStatus = unmarshaller.Unmarshall(context); continue; } } else if (context.IsEndElement && context.CurrentDepth < originalDepth) { return unmarshalledObject; } } return unmarshalledObject; } /// <summary> /// Unmarshaller error response to exception. /// </summary> /// <param name="context"></param> /// <returns></returns> public StackDriftInformation Unmarshall(JsonUnmarshallerContext context) { return null; } private static StackDriftInformationUnmarshaller _instance = new StackDriftInformationUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static StackDriftInformationUnmarshaller Instance { get { return _instance; } } } }
103
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudformation-2010-05-15.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.CloudFormation.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; namespace Amazon.CloudFormation.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for StackEvent Object /// </summary> public class StackEventUnmarshaller : IUnmarshaller<StackEvent, XmlUnmarshallerContext>, IUnmarshaller<StackEvent, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public StackEvent Unmarshall(XmlUnmarshallerContext context) { StackEvent unmarshalledObject = new StackEvent(); int originalDepth = context.CurrentDepth; int targetDepth = originalDepth + 1; if (context.IsStartOfDocument) targetDepth += 2; while (context.ReadAtDepth(originalDepth)) { if (context.IsStartElement || context.IsAttribute) { if (context.TestExpression("ClientRequestToken", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.ClientRequestToken = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("EventId", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.EventId = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("HookFailureMode", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.HookFailureMode = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("HookInvocationPoint", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.HookInvocationPoint = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("HookStatus", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.HookStatus = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("HookStatusReason", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.HookStatusReason = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("HookType", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.HookType = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("LogicalResourceId", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.LogicalResourceId = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("PhysicalResourceId", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.PhysicalResourceId = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("ResourceProperties", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.ResourceProperties = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("ResourceStatus", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.ResourceStatus = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("ResourceStatusReason", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.ResourceStatusReason = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("ResourceType", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.ResourceType = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("StackId", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.StackId = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("StackName", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.StackName = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Timestamp", targetDepth)) { var unmarshaller = DateTimeUnmarshaller.Instance; unmarshalledObject.Timestamp = unmarshaller.Unmarshall(context); continue; } } else if (context.IsEndElement && context.CurrentDepth < originalDepth) { return unmarshalledObject; } } return unmarshalledObject; } /// <summary> /// Unmarshaller error response to exception. /// </summary> /// <param name="context"></param> /// <returns></returns> public StackEvent Unmarshall(JsonUnmarshallerContext context) { return null; } private static StackEventUnmarshaller _instance = new StackEventUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static StackEventUnmarshaller Instance { get { return _instance; } } } }
187
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudformation-2010-05-15.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.CloudFormation.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; namespace Amazon.CloudFormation.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for StackInstanceComprehensiveStatus Object /// </summary> public class StackInstanceComprehensiveStatusUnmarshaller : IUnmarshaller<StackInstanceComprehensiveStatus, XmlUnmarshallerContext>, IUnmarshaller<StackInstanceComprehensiveStatus, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public StackInstanceComprehensiveStatus Unmarshall(XmlUnmarshallerContext context) { StackInstanceComprehensiveStatus unmarshalledObject = new StackInstanceComprehensiveStatus(); int originalDepth = context.CurrentDepth; int targetDepth = originalDepth + 1; if (context.IsStartOfDocument) targetDepth += 2; while (context.ReadAtDepth(originalDepth)) { if (context.IsStartElement || context.IsAttribute) { if (context.TestExpression("DetailedStatus", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.DetailedStatus = unmarshaller.Unmarshall(context); continue; } } else if (context.IsEndElement && context.CurrentDepth < originalDepth) { return unmarshalledObject; } } return unmarshalledObject; } /// <summary> /// Unmarshaller error response to exception. /// </summary> /// <param name="context"></param> /// <returns></returns> public StackInstanceComprehensiveStatus Unmarshall(JsonUnmarshallerContext context) { return null; } private static StackInstanceComprehensiveStatusUnmarshaller _instance = new StackInstanceComprehensiveStatusUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static StackInstanceComprehensiveStatusUnmarshaller Instance { get { return _instance; } } } }
97
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudformation-2010-05-15.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.CloudFormation.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; namespace Amazon.CloudFormation.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for StackInstanceNotFoundException operation /// </summary> public class StackInstanceNotFoundExceptionUnmarshaller : IErrorResponseUnmarshaller<StackInstanceNotFoundException, XmlUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public StackInstanceNotFoundException Unmarshall(XmlUnmarshallerContext context) { return this.Unmarshall(context, new Amazon.Runtime.Internal.ErrorResponse()); } /// <summary> /// Unmarshaller error response to exception. /// </summary> /// <param name="context"></param> /// <param name="errorResponse"></param> /// <returns></returns> public StackInstanceNotFoundException Unmarshall(XmlUnmarshallerContext context, Amazon.Runtime.Internal.ErrorResponse errorResponse) { StackInstanceNotFoundException response = new StackInstanceNotFoundException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); int originalDepth = context.CurrentDepth; int targetDepth = originalDepth + 1; if (context.IsStartOfDocument) targetDepth += 2; while (context.ReadAtDepth(originalDepth)) { if (context.IsStartElement || context.IsAttribute) { } } return response; } private static StackInstanceNotFoundExceptionUnmarshaller _instance = new StackInstanceNotFoundExceptionUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static StackInstanceNotFoundExceptionUnmarshaller Instance { get { return _instance; } } } }
88
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudformation-2010-05-15.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.CloudFormation.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; namespace Amazon.CloudFormation.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for StackInstanceSummary Object /// </summary> public class StackInstanceSummaryUnmarshaller : IUnmarshaller<StackInstanceSummary, XmlUnmarshallerContext>, IUnmarshaller<StackInstanceSummary, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public StackInstanceSummary Unmarshall(XmlUnmarshallerContext context) { StackInstanceSummary unmarshalledObject = new StackInstanceSummary(); int originalDepth = context.CurrentDepth; int targetDepth = originalDepth + 1; if (context.IsStartOfDocument) targetDepth += 2; while (context.ReadAtDepth(originalDepth)) { if (context.IsStartElement || context.IsAttribute) { if (context.TestExpression("Account", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Account = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("DriftStatus", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.DriftStatus = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("LastDriftCheckTimestamp", targetDepth)) { var unmarshaller = DateTimeUnmarshaller.Instance; unmarshalledObject.LastDriftCheckTimestamp = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("LastOperationId", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.LastOperationId = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("OrganizationalUnitId", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.OrganizationalUnitId = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Region", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Region = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("StackId", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.StackId = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("StackInstanceStatus", targetDepth)) { var unmarshaller = StackInstanceComprehensiveStatusUnmarshaller.Instance; unmarshalledObject.StackInstanceStatus = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("StackSetId", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.StackSetId = 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; } } else if (context.IsEndElement && context.CurrentDepth < originalDepth) { return unmarshalledObject; } } return unmarshalledObject; } /// <summary> /// Unmarshaller error response to exception. /// </summary> /// <param name="context"></param> /// <returns></returns> public StackInstanceSummary Unmarshall(JsonUnmarshallerContext context) { return null; } private static StackInstanceSummaryUnmarshaller _instance = new StackInstanceSummaryUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static StackInstanceSummaryUnmarshaller Instance { get { return _instance; } } } }
157
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudformation-2010-05-15.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.CloudFormation.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; namespace Amazon.CloudFormation.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for StackInstance Object /// </summary> public class StackInstanceUnmarshaller : IUnmarshaller<StackInstance, XmlUnmarshallerContext>, IUnmarshaller<StackInstance, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public StackInstance Unmarshall(XmlUnmarshallerContext context) { StackInstance unmarshalledObject = new StackInstance(); int originalDepth = context.CurrentDepth; int targetDepth = originalDepth + 1; if (context.IsStartOfDocument) targetDepth += 2; while (context.ReadAtDepth(originalDepth)) { if (context.IsStartElement || context.IsAttribute) { if (context.TestExpression("Account", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Account = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("DriftStatus", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.DriftStatus = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("LastDriftCheckTimestamp", targetDepth)) { var unmarshaller = DateTimeUnmarshaller.Instance; unmarshalledObject.LastDriftCheckTimestamp = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("LastOperationId", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.LastOperationId = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("OrganizationalUnitId", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.OrganizationalUnitId = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("ParameterOverrides/member", targetDepth)) { var unmarshaller = ParameterUnmarshaller.Instance; var item = unmarshaller.Unmarshall(context); unmarshalledObject.ParameterOverrides.Add(item); continue; } if (context.TestExpression("Region", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Region = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("StackId", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.StackId = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("StackInstanceStatus", targetDepth)) { var unmarshaller = StackInstanceComprehensiveStatusUnmarshaller.Instance; unmarshalledObject.StackInstanceStatus = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("StackSetId", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.StackSetId = 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; } } else if (context.IsEndElement && context.CurrentDepth < originalDepth) { return unmarshalledObject; } } return unmarshalledObject; } /// <summary> /// Unmarshaller error response to exception. /// </summary> /// <param name="context"></param> /// <returns></returns> public StackInstance Unmarshall(JsonUnmarshallerContext context) { return null; } private static StackInstanceUnmarshaller _instance = new StackInstanceUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static StackInstanceUnmarshaller Instance { get { return _instance; } } } }
164
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudformation-2010-05-15.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.CloudFormation.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; namespace Amazon.CloudFormation.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for StackNotFoundException operation /// </summary> public class StackNotFoundExceptionUnmarshaller : IErrorResponseUnmarshaller<StackNotFoundException, XmlUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public StackNotFoundException Unmarshall(XmlUnmarshallerContext context) { return this.Unmarshall(context, new Amazon.Runtime.Internal.ErrorResponse()); } /// <summary> /// Unmarshaller error response to exception. /// </summary> /// <param name="context"></param> /// <param name="errorResponse"></param> /// <returns></returns> public StackNotFoundException Unmarshall(XmlUnmarshallerContext context, Amazon.Runtime.Internal.ErrorResponse errorResponse) { StackNotFoundException response = new StackNotFoundException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); int originalDepth = context.CurrentDepth; int targetDepth = originalDepth + 1; if (context.IsStartOfDocument) targetDepth += 2; while (context.ReadAtDepth(originalDepth)) { if (context.IsStartElement || context.IsAttribute) { } } return response; } private static StackNotFoundExceptionUnmarshaller _instance = new StackNotFoundExceptionUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static StackNotFoundExceptionUnmarshaller Instance { get { return _instance; } } } }
88
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudformation-2010-05-15.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.CloudFormation.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; namespace Amazon.CloudFormation.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for StackResourceDetail Object /// </summary> public class StackResourceDetailUnmarshaller : IUnmarshaller<StackResourceDetail, XmlUnmarshallerContext>, IUnmarshaller<StackResourceDetail, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public StackResourceDetail Unmarshall(XmlUnmarshallerContext context) { StackResourceDetail unmarshalledObject = new StackResourceDetail(); int originalDepth = context.CurrentDepth; int targetDepth = originalDepth + 1; if (context.IsStartOfDocument) targetDepth += 2; while (context.ReadAtDepth(originalDepth)) { if (context.IsStartElement || context.IsAttribute) { if (context.TestExpression("Description", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Description = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("DriftInformation", targetDepth)) { var unmarshaller = StackResourceDriftInformationUnmarshaller.Instance; unmarshalledObject.DriftInformation = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("LastUpdatedTimestamp", targetDepth)) { var unmarshaller = DateTimeUnmarshaller.Instance; unmarshalledObject.LastUpdatedTimestamp = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("LogicalResourceId", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.LogicalResourceId = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Metadata", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Metadata = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("ModuleInfo", targetDepth)) { var unmarshaller = ModuleInfoUnmarshaller.Instance; unmarshalledObject.ModuleInfo = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("PhysicalResourceId", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.PhysicalResourceId = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("ResourceStatus", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.ResourceStatus = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("ResourceStatusReason", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.ResourceStatusReason = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("ResourceType", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.ResourceType = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("StackId", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.StackId = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("StackName", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.StackName = unmarshaller.Unmarshall(context); continue; } } else if (context.IsEndElement && context.CurrentDepth < originalDepth) { return unmarshalledObject; } } return unmarshalledObject; } /// <summary> /// Unmarshaller error response to exception. /// </summary> /// <param name="context"></param> /// <returns></returns> public StackResourceDetail Unmarshall(JsonUnmarshallerContext context) { return null; } private static StackResourceDetailUnmarshaller _instance = new StackResourceDetailUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static StackResourceDetailUnmarshaller Instance { get { return _instance; } } } }
163
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudformation-2010-05-15.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.CloudFormation.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; namespace Amazon.CloudFormation.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for StackResourceDriftInformationSummary Object /// </summary> public class StackResourceDriftInformationSummaryUnmarshaller : IUnmarshaller<StackResourceDriftInformationSummary, XmlUnmarshallerContext>, IUnmarshaller<StackResourceDriftInformationSummary, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public StackResourceDriftInformationSummary Unmarshall(XmlUnmarshallerContext context) { StackResourceDriftInformationSummary unmarshalledObject = new StackResourceDriftInformationSummary(); int originalDepth = context.CurrentDepth; int targetDepth = originalDepth + 1; if (context.IsStartOfDocument) targetDepth += 2; while (context.ReadAtDepth(originalDepth)) { if (context.IsStartElement || context.IsAttribute) { if (context.TestExpression("LastCheckTimestamp", targetDepth)) { var unmarshaller = DateTimeUnmarshaller.Instance; unmarshalledObject.LastCheckTimestamp = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("StackResourceDriftStatus", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.StackResourceDriftStatus = unmarshaller.Unmarshall(context); continue; } } else if (context.IsEndElement && context.CurrentDepth < originalDepth) { return unmarshalledObject; } } return unmarshalledObject; } /// <summary> /// Unmarshaller error response to exception. /// </summary> /// <param name="context"></param> /// <returns></returns> public StackResourceDriftInformationSummary Unmarshall(JsonUnmarshallerContext context) { return null; } private static StackResourceDriftInformationSummaryUnmarshaller _instance = new StackResourceDriftInformationSummaryUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static StackResourceDriftInformationSummaryUnmarshaller Instance { get { return _instance; } } } }
103
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudformation-2010-05-15.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.CloudFormation.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; namespace Amazon.CloudFormation.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for StackResourceDriftInformation Object /// </summary> public class StackResourceDriftInformationUnmarshaller : IUnmarshaller<StackResourceDriftInformation, XmlUnmarshallerContext>, IUnmarshaller<StackResourceDriftInformation, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public StackResourceDriftInformation Unmarshall(XmlUnmarshallerContext context) { StackResourceDriftInformation unmarshalledObject = new StackResourceDriftInformation(); int originalDepth = context.CurrentDepth; int targetDepth = originalDepth + 1; if (context.IsStartOfDocument) targetDepth += 2; while (context.ReadAtDepth(originalDepth)) { if (context.IsStartElement || context.IsAttribute) { if (context.TestExpression("LastCheckTimestamp", targetDepth)) { var unmarshaller = DateTimeUnmarshaller.Instance; unmarshalledObject.LastCheckTimestamp = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("StackResourceDriftStatus", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.StackResourceDriftStatus = unmarshaller.Unmarshall(context); continue; } } else if (context.IsEndElement && context.CurrentDepth < originalDepth) { return unmarshalledObject; } } return unmarshalledObject; } /// <summary> /// Unmarshaller error response to exception. /// </summary> /// <param name="context"></param> /// <returns></returns> public StackResourceDriftInformation Unmarshall(JsonUnmarshallerContext context) { return null; } private static StackResourceDriftInformationUnmarshaller _instance = new StackResourceDriftInformationUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static StackResourceDriftInformationUnmarshaller Instance { get { return _instance; } } } }
103
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudformation-2010-05-15.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.CloudFormation.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; namespace Amazon.CloudFormation.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for StackResourceDrift Object /// </summary> public class StackResourceDriftUnmarshaller : IUnmarshaller<StackResourceDrift, XmlUnmarshallerContext>, IUnmarshaller<StackResourceDrift, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public StackResourceDrift Unmarshall(XmlUnmarshallerContext context) { StackResourceDrift unmarshalledObject = new StackResourceDrift(); int originalDepth = context.CurrentDepth; int targetDepth = originalDepth + 1; if (context.IsStartOfDocument) targetDepth += 2; while (context.ReadAtDepth(originalDepth)) { if (context.IsStartElement || context.IsAttribute) { if (context.TestExpression("ActualProperties", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.ActualProperties = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("ExpectedProperties", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.ExpectedProperties = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("LogicalResourceId", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.LogicalResourceId = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("ModuleInfo", targetDepth)) { var unmarshaller = ModuleInfoUnmarshaller.Instance; unmarshalledObject.ModuleInfo = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("PhysicalResourceId", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.PhysicalResourceId = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("PhysicalResourceIdContext/member", targetDepth)) { var unmarshaller = PhysicalResourceIdContextKeyValuePairUnmarshaller.Instance; var item = unmarshaller.Unmarshall(context); unmarshalledObject.PhysicalResourceIdContext.Add(item); continue; } if (context.TestExpression("PropertyDifferences/member", targetDepth)) { var unmarshaller = PropertyDifferenceUnmarshaller.Instance; var item = unmarshaller.Unmarshall(context); unmarshalledObject.PropertyDifferences.Add(item); continue; } if (context.TestExpression("ResourceType", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.ResourceType = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("StackId", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.StackId = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("StackResourceDriftStatus", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.StackResourceDriftStatus = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Timestamp", targetDepth)) { var unmarshaller = DateTimeUnmarshaller.Instance; unmarshalledObject.Timestamp = unmarshaller.Unmarshall(context); continue; } } else if (context.IsEndElement && context.CurrentDepth < originalDepth) { return unmarshalledObject; } } return unmarshalledObject; } /// <summary> /// Unmarshaller error response to exception. /// </summary> /// <param name="context"></param> /// <returns></returns> public StackResourceDrift Unmarshall(JsonUnmarshallerContext context) { return null; } private static StackResourceDriftUnmarshaller _instance = new StackResourceDriftUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static StackResourceDriftUnmarshaller Instance { get { return _instance; } } } }
159
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudformation-2010-05-15.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.CloudFormation.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; namespace Amazon.CloudFormation.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for StackResourceSummary Object /// </summary> public class StackResourceSummaryUnmarshaller : IUnmarshaller<StackResourceSummary, XmlUnmarshallerContext>, IUnmarshaller<StackResourceSummary, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public StackResourceSummary Unmarshall(XmlUnmarshallerContext context) { StackResourceSummary unmarshalledObject = new StackResourceSummary(); int originalDepth = context.CurrentDepth; int targetDepth = originalDepth + 1; if (context.IsStartOfDocument) targetDepth += 2; while (context.ReadAtDepth(originalDepth)) { if (context.IsStartElement || context.IsAttribute) { if (context.TestExpression("DriftInformation", targetDepth)) { var unmarshaller = StackResourceDriftInformationSummaryUnmarshaller.Instance; unmarshalledObject.DriftInformation = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("LastUpdatedTimestamp", targetDepth)) { var unmarshaller = DateTimeUnmarshaller.Instance; unmarshalledObject.LastUpdatedTimestamp = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("LogicalResourceId", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.LogicalResourceId = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("ModuleInfo", targetDepth)) { var unmarshaller = ModuleInfoUnmarshaller.Instance; unmarshalledObject.ModuleInfo = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("PhysicalResourceId", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.PhysicalResourceId = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("ResourceStatus", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.ResourceStatus = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("ResourceStatusReason", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.ResourceStatusReason = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("ResourceType", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.ResourceType = unmarshaller.Unmarshall(context); continue; } } else if (context.IsEndElement && context.CurrentDepth < originalDepth) { return unmarshalledObject; } } return unmarshalledObject; } /// <summary> /// Unmarshaller error response to exception. /// </summary> /// <param name="context"></param> /// <returns></returns> public StackResourceSummary Unmarshall(JsonUnmarshallerContext context) { return null; } private static StackResourceSummaryUnmarshaller _instance = new StackResourceSummaryUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static StackResourceSummaryUnmarshaller Instance { get { return _instance; } } } }
139
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudformation-2010-05-15.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.CloudFormation.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; namespace Amazon.CloudFormation.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for StackResource Object /// </summary> public class StackResourceUnmarshaller : IUnmarshaller<StackResource, XmlUnmarshallerContext>, IUnmarshaller<StackResource, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public StackResource Unmarshall(XmlUnmarshallerContext context) { StackResource unmarshalledObject = new StackResource(); int originalDepth = context.CurrentDepth; int targetDepth = originalDepth + 1; if (context.IsStartOfDocument) targetDepth += 2; while (context.ReadAtDepth(originalDepth)) { if (context.IsStartElement || context.IsAttribute) { if (context.TestExpression("Description", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Description = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("DriftInformation", targetDepth)) { var unmarshaller = StackResourceDriftInformationUnmarshaller.Instance; unmarshalledObject.DriftInformation = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("LogicalResourceId", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.LogicalResourceId = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("ModuleInfo", targetDepth)) { var unmarshaller = ModuleInfoUnmarshaller.Instance; unmarshalledObject.ModuleInfo = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("PhysicalResourceId", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.PhysicalResourceId = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("ResourceStatus", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.ResourceStatus = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("ResourceStatusReason", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.ResourceStatusReason = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("ResourceType", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.ResourceType = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("StackId", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.StackId = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("StackName", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.StackName = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Timestamp", targetDepth)) { var unmarshaller = DateTimeUnmarshaller.Instance; unmarshalledObject.Timestamp = unmarshaller.Unmarshall(context); continue; } } else if (context.IsEndElement && context.CurrentDepth < originalDepth) { return unmarshalledObject; } } return unmarshalledObject; } /// <summary> /// Unmarshaller error response to exception. /// </summary> /// <param name="context"></param> /// <returns></returns> public StackResource Unmarshall(JsonUnmarshallerContext context) { return null; } private static StackResourceUnmarshaller _instance = new StackResourceUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static StackResourceUnmarshaller Instance { get { return _instance; } } } }
157
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudformation-2010-05-15.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.CloudFormation.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; namespace Amazon.CloudFormation.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for StackSetDriftDetectionDetails Object /// </summary> public class StackSetDriftDetectionDetailsUnmarshaller : IUnmarshaller<StackSetDriftDetectionDetails, XmlUnmarshallerContext>, IUnmarshaller<StackSetDriftDetectionDetails, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public StackSetDriftDetectionDetails Unmarshall(XmlUnmarshallerContext context) { StackSetDriftDetectionDetails unmarshalledObject = new StackSetDriftDetectionDetails(); int originalDepth = context.CurrentDepth; int targetDepth = originalDepth + 1; if (context.IsStartOfDocument) targetDepth += 2; while (context.ReadAtDepth(originalDepth)) { if (context.IsStartElement || context.IsAttribute) { if (context.TestExpression("DriftDetectionStatus", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.DriftDetectionStatus = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("DriftedStackInstancesCount", targetDepth)) { var unmarshaller = IntUnmarshaller.Instance; unmarshalledObject.DriftedStackInstancesCount = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("DriftStatus", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.DriftStatus = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("FailedStackInstancesCount", targetDepth)) { var unmarshaller = IntUnmarshaller.Instance; unmarshalledObject.FailedStackInstancesCount = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("InProgressStackInstancesCount", targetDepth)) { var unmarshaller = IntUnmarshaller.Instance; unmarshalledObject.InProgressStackInstancesCount = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("InSyncStackInstancesCount", targetDepth)) { var unmarshaller = IntUnmarshaller.Instance; unmarshalledObject.InSyncStackInstancesCount = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("LastDriftCheckTimestamp", targetDepth)) { var unmarshaller = DateTimeUnmarshaller.Instance; unmarshalledObject.LastDriftCheckTimestamp = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("TotalStackInstancesCount", targetDepth)) { var unmarshaller = IntUnmarshaller.Instance; unmarshalledObject.TotalStackInstancesCount = unmarshaller.Unmarshall(context); continue; } } else if (context.IsEndElement && context.CurrentDepth < originalDepth) { return unmarshalledObject; } } return unmarshalledObject; } /// <summary> /// Unmarshaller error response to exception. /// </summary> /// <param name="context"></param> /// <returns></returns> public StackSetDriftDetectionDetails Unmarshall(JsonUnmarshallerContext context) { return null; } private static StackSetDriftDetectionDetailsUnmarshaller _instance = new StackSetDriftDetectionDetailsUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static StackSetDriftDetectionDetailsUnmarshaller Instance { get { return _instance; } } } }
139
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudformation-2010-05-15.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.CloudFormation.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; namespace Amazon.CloudFormation.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for StackSetNotEmptyException operation /// </summary> public class StackSetNotEmptyExceptionUnmarshaller : IErrorResponseUnmarshaller<StackSetNotEmptyException, XmlUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public StackSetNotEmptyException Unmarshall(XmlUnmarshallerContext context) { return this.Unmarshall(context, new Amazon.Runtime.Internal.ErrorResponse()); } /// <summary> /// Unmarshaller error response to exception. /// </summary> /// <param name="context"></param> /// <param name="errorResponse"></param> /// <returns></returns> public StackSetNotEmptyException Unmarshall(XmlUnmarshallerContext context, Amazon.Runtime.Internal.ErrorResponse errorResponse) { StackSetNotEmptyException response = new StackSetNotEmptyException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); int originalDepth = context.CurrentDepth; int targetDepth = originalDepth + 1; if (context.IsStartOfDocument) targetDepth += 2; while (context.ReadAtDepth(originalDepth)) { if (context.IsStartElement || context.IsAttribute) { } } return response; } private static StackSetNotEmptyExceptionUnmarshaller _instance = new StackSetNotEmptyExceptionUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static StackSetNotEmptyExceptionUnmarshaller Instance { get { return _instance; } } } }
88
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudformation-2010-05-15.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.CloudFormation.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; namespace Amazon.CloudFormation.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for StackSetNotFoundException operation /// </summary> public class StackSetNotFoundExceptionUnmarshaller : IErrorResponseUnmarshaller<StackSetNotFoundException, XmlUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public StackSetNotFoundException Unmarshall(XmlUnmarshallerContext context) { return this.Unmarshall(context, new Amazon.Runtime.Internal.ErrorResponse()); } /// <summary> /// Unmarshaller error response to exception. /// </summary> /// <param name="context"></param> /// <param name="errorResponse"></param> /// <returns></returns> public StackSetNotFoundException Unmarshall(XmlUnmarshallerContext context, Amazon.Runtime.Internal.ErrorResponse errorResponse) { StackSetNotFoundException response = new StackSetNotFoundException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); int originalDepth = context.CurrentDepth; int targetDepth = originalDepth + 1; if (context.IsStartOfDocument) targetDepth += 2; while (context.ReadAtDepth(originalDepth)) { if (context.IsStartElement || context.IsAttribute) { } } return response; } private static StackSetNotFoundExceptionUnmarshaller _instance = new StackSetNotFoundExceptionUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static StackSetNotFoundExceptionUnmarshaller Instance { get { return _instance; } } } }
88
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudformation-2010-05-15.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.CloudFormation.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; namespace Amazon.CloudFormation.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for StackSetOperationPreferences Object /// </summary> public class StackSetOperationPreferencesUnmarshaller : IUnmarshaller<StackSetOperationPreferences, XmlUnmarshallerContext>, IUnmarshaller<StackSetOperationPreferences, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public StackSetOperationPreferences Unmarshall(XmlUnmarshallerContext context) { StackSetOperationPreferences unmarshalledObject = new StackSetOperationPreferences(); int originalDepth = context.CurrentDepth; int targetDepth = originalDepth + 1; if (context.IsStartOfDocument) targetDepth += 2; while (context.ReadAtDepth(originalDepth)) { if (context.IsStartElement || context.IsAttribute) { if (context.TestExpression("FailureToleranceCount", targetDepth)) { var unmarshaller = IntUnmarshaller.Instance; unmarshalledObject.FailureToleranceCount = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("FailureTolerancePercentage", targetDepth)) { var unmarshaller = IntUnmarshaller.Instance; unmarshalledObject.FailureTolerancePercentage = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("MaxConcurrentCount", targetDepth)) { var unmarshaller = IntUnmarshaller.Instance; unmarshalledObject.MaxConcurrentCount = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("MaxConcurrentPercentage", targetDepth)) { var unmarshaller = IntUnmarshaller.Instance; unmarshalledObject.MaxConcurrentPercentage = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("RegionConcurrencyType", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.RegionConcurrencyType = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("RegionOrder/member", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; var item = unmarshaller.Unmarshall(context); unmarshalledObject.RegionOrder.Add(item); continue; } } else if (context.IsEndElement && context.CurrentDepth < originalDepth) { return unmarshalledObject; } } return unmarshalledObject; } /// <summary> /// Unmarshaller error response to exception. /// </summary> /// <param name="context"></param> /// <returns></returns> public StackSetOperationPreferences Unmarshall(JsonUnmarshallerContext context) { return null; } private static StackSetOperationPreferencesUnmarshaller _instance = new StackSetOperationPreferencesUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static StackSetOperationPreferencesUnmarshaller Instance { get { return _instance; } } } }
128
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudformation-2010-05-15.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.CloudFormation.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; namespace Amazon.CloudFormation.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for StackSetOperationResultSummary Object /// </summary> public class StackSetOperationResultSummaryUnmarshaller : IUnmarshaller<StackSetOperationResultSummary, XmlUnmarshallerContext>, IUnmarshaller<StackSetOperationResultSummary, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public StackSetOperationResultSummary Unmarshall(XmlUnmarshallerContext context) { StackSetOperationResultSummary unmarshalledObject = new StackSetOperationResultSummary(); int originalDepth = context.CurrentDepth; int targetDepth = originalDepth + 1; if (context.IsStartOfDocument) targetDepth += 2; while (context.ReadAtDepth(originalDepth)) { if (context.IsStartElement || context.IsAttribute) { if (context.TestExpression("Account", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Account = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("AccountGateResult", targetDepth)) { var unmarshaller = AccountGateResultUnmarshaller.Instance; unmarshalledObject.AccountGateResult = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("OrganizationalUnitId", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.OrganizationalUnitId = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Region", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Region = 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; } } else if (context.IsEndElement && context.CurrentDepth < originalDepth) { return unmarshalledObject; } } return unmarshalledObject; } /// <summary> /// Unmarshaller error response to exception. /// </summary> /// <param name="context"></param> /// <returns></returns> public StackSetOperationResultSummary Unmarshall(JsonUnmarshallerContext context) { return null; } private static StackSetOperationResultSummaryUnmarshaller _instance = new StackSetOperationResultSummaryUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static StackSetOperationResultSummaryUnmarshaller Instance { get { return _instance; } } } }
127
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudformation-2010-05-15.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.CloudFormation.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; namespace Amazon.CloudFormation.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for StackSetOperationStatusDetails Object /// </summary> public class StackSetOperationStatusDetailsUnmarshaller : IUnmarshaller<StackSetOperationStatusDetails, XmlUnmarshallerContext>, IUnmarshaller<StackSetOperationStatusDetails, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public StackSetOperationStatusDetails Unmarshall(XmlUnmarshallerContext context) { StackSetOperationStatusDetails unmarshalledObject = new StackSetOperationStatusDetails(); int originalDepth = context.CurrentDepth; int targetDepth = originalDepth + 1; if (context.IsStartOfDocument) targetDepth += 2; while (context.ReadAtDepth(originalDepth)) { if (context.IsStartElement || context.IsAttribute) { if (context.TestExpression("FailedStackInstancesCount", targetDepth)) { var unmarshaller = IntUnmarshaller.Instance; unmarshalledObject.FailedStackInstancesCount = unmarshaller.Unmarshall(context); continue; } } else if (context.IsEndElement && context.CurrentDepth < originalDepth) { return unmarshalledObject; } } return unmarshalledObject; } /// <summary> /// Unmarshaller error response to exception. /// </summary> /// <param name="context"></param> /// <returns></returns> public StackSetOperationStatusDetails Unmarshall(JsonUnmarshallerContext context) { return null; } private static StackSetOperationStatusDetailsUnmarshaller _instance = new StackSetOperationStatusDetailsUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static StackSetOperationStatusDetailsUnmarshaller Instance { get { return _instance; } } } }
97
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudformation-2010-05-15.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.CloudFormation.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; namespace Amazon.CloudFormation.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for StackSetOperationSummary Object /// </summary> public class StackSetOperationSummaryUnmarshaller : IUnmarshaller<StackSetOperationSummary, XmlUnmarshallerContext>, IUnmarshaller<StackSetOperationSummary, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public StackSetOperationSummary Unmarshall(XmlUnmarshallerContext context) { StackSetOperationSummary unmarshalledObject = new StackSetOperationSummary(); int originalDepth = context.CurrentDepth; int targetDepth = originalDepth + 1; if (context.IsStartOfDocument) targetDepth += 2; while (context.ReadAtDepth(originalDepth)) { if (context.IsStartElement || context.IsAttribute) { if (context.TestExpression("Action", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Action = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("CreationTimestamp", targetDepth)) { var unmarshaller = DateTimeUnmarshaller.Instance; unmarshalledObject.CreationTimestamp = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("EndTimestamp", targetDepth)) { var unmarshaller = DateTimeUnmarshaller.Instance; unmarshalledObject.EndTimestamp = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("OperationId", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.OperationId = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("OperationPreferences", targetDepth)) { var unmarshaller = StackSetOperationPreferencesUnmarshaller.Instance; unmarshalledObject.OperationPreferences = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Status", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Status = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("StatusDetails", targetDepth)) { var unmarshaller = StackSetOperationStatusDetailsUnmarshaller.Instance; unmarshalledObject.StatusDetails = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("StatusReason", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.StatusReason = unmarshaller.Unmarshall(context); continue; } } else if (context.IsEndElement && context.CurrentDepth < originalDepth) { return unmarshalledObject; } } return unmarshalledObject; } /// <summary> /// Unmarshaller error response to exception. /// </summary> /// <param name="context"></param> /// <returns></returns> public StackSetOperationSummary Unmarshall(JsonUnmarshallerContext context) { return null; } private static StackSetOperationSummaryUnmarshaller _instance = new StackSetOperationSummaryUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static StackSetOperationSummaryUnmarshaller Instance { get { return _instance; } } } }
139
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudformation-2010-05-15.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.CloudFormation.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; namespace Amazon.CloudFormation.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for StackSetOperation Object /// </summary> public class StackSetOperationUnmarshaller : IUnmarshaller<StackSetOperation, XmlUnmarshallerContext>, IUnmarshaller<StackSetOperation, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public StackSetOperation Unmarshall(XmlUnmarshallerContext context) { StackSetOperation unmarshalledObject = new StackSetOperation(); int originalDepth = context.CurrentDepth; int targetDepth = originalDepth + 1; if (context.IsStartOfDocument) targetDepth += 2; while (context.ReadAtDepth(originalDepth)) { if (context.IsStartElement || context.IsAttribute) { if (context.TestExpression("Action", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Action = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("AdministrationRoleARN", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.AdministrationRoleARN = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("CreationTimestamp", targetDepth)) { var unmarshaller = DateTimeUnmarshaller.Instance; unmarshalledObject.CreationTimestamp = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("DeploymentTargets", targetDepth)) { var unmarshaller = DeploymentTargetsUnmarshaller.Instance; unmarshalledObject.DeploymentTargets = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("EndTimestamp", targetDepth)) { var unmarshaller = DateTimeUnmarshaller.Instance; unmarshalledObject.EndTimestamp = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("ExecutionRoleName", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.ExecutionRoleName = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("OperationId", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.OperationId = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("OperationPreferences", targetDepth)) { var unmarshaller = StackSetOperationPreferencesUnmarshaller.Instance; unmarshalledObject.OperationPreferences = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("RetainStacks", targetDepth)) { var unmarshaller = BoolUnmarshaller.Instance; unmarshalledObject.RetainStacks = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("StackSetDriftDetectionDetails", targetDepth)) { var unmarshaller = StackSetDriftDetectionDetailsUnmarshaller.Instance; unmarshalledObject.StackSetDriftDetectionDetails = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("StackSetId", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.StackSetId = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Status", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Status = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("StatusDetails", targetDepth)) { var unmarshaller = StackSetOperationStatusDetailsUnmarshaller.Instance; unmarshalledObject.StatusDetails = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("StatusReason", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.StatusReason = unmarshaller.Unmarshall(context); continue; } } else if (context.IsEndElement && context.CurrentDepth < originalDepth) { return unmarshalledObject; } } return unmarshalledObject; } /// <summary> /// Unmarshaller error response to exception. /// </summary> /// <param name="context"></param> /// <returns></returns> public StackSetOperation Unmarshall(JsonUnmarshallerContext context) { return null; } private static StackSetOperationUnmarshaller _instance = new StackSetOperationUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static StackSetOperationUnmarshaller Instance { get { return _instance; } } } }
175
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudformation-2010-05-15.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.CloudFormation.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; namespace Amazon.CloudFormation.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for StackSetSummary Object /// </summary> public class StackSetSummaryUnmarshaller : IUnmarshaller<StackSetSummary, XmlUnmarshallerContext>, IUnmarshaller<StackSetSummary, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public StackSetSummary Unmarshall(XmlUnmarshallerContext context) { StackSetSummary unmarshalledObject = new StackSetSummary(); int originalDepth = context.CurrentDepth; int targetDepth = originalDepth + 1; if (context.IsStartOfDocument) targetDepth += 2; while (context.ReadAtDepth(originalDepth)) { if (context.IsStartElement || context.IsAttribute) { if (context.TestExpression("AutoDeployment", targetDepth)) { var unmarshaller = AutoDeploymentUnmarshaller.Instance; unmarshalledObject.AutoDeployment = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Description", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Description = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("DriftStatus", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.DriftStatus = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("LastDriftCheckTimestamp", targetDepth)) { var unmarshaller = DateTimeUnmarshaller.Instance; unmarshalledObject.LastDriftCheckTimestamp = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("ManagedExecution", targetDepth)) { var unmarshaller = ManagedExecutionUnmarshaller.Instance; unmarshalledObject.ManagedExecution = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("PermissionModel", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.PermissionModel = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("StackSetId", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.StackSetId = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("StackSetName", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.StackSetName = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Status", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Status = unmarshaller.Unmarshall(context); continue; } } else if (context.IsEndElement && context.CurrentDepth < originalDepth) { return unmarshalledObject; } } return unmarshalledObject; } /// <summary> /// Unmarshaller error response to exception. /// </summary> /// <param name="context"></param> /// <returns></returns> public StackSetSummary Unmarshall(JsonUnmarshallerContext context) { return null; } private static StackSetSummaryUnmarshaller _instance = new StackSetSummaryUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static StackSetSummaryUnmarshaller Instance { get { return _instance; } } } }
145
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudformation-2010-05-15.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.CloudFormation.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; namespace Amazon.CloudFormation.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for StackSet Object /// </summary> public class StackSetUnmarshaller : IUnmarshaller<StackSet, XmlUnmarshallerContext>, IUnmarshaller<StackSet, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public StackSet Unmarshall(XmlUnmarshallerContext context) { StackSet unmarshalledObject = new StackSet(); int originalDepth = context.CurrentDepth; int targetDepth = originalDepth + 1; if (context.IsStartOfDocument) targetDepth += 2; while (context.ReadAtDepth(originalDepth)) { if (context.IsStartElement || context.IsAttribute) { if (context.TestExpression("AdministrationRoleARN", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.AdministrationRoleARN = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("AutoDeployment", targetDepth)) { var unmarshaller = AutoDeploymentUnmarshaller.Instance; unmarshalledObject.AutoDeployment = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Capabilities/member", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; var item = unmarshaller.Unmarshall(context); unmarshalledObject.Capabilities.Add(item); continue; } if (context.TestExpression("Description", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Description = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("ExecutionRoleName", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.ExecutionRoleName = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("ManagedExecution", targetDepth)) { var unmarshaller = ManagedExecutionUnmarshaller.Instance; unmarshalledObject.ManagedExecution = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("OrganizationalUnitIds/member", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; var item = unmarshaller.Unmarshall(context); unmarshalledObject.OrganizationalUnitIds.Add(item); continue; } if (context.TestExpression("Parameters/member", targetDepth)) { var unmarshaller = ParameterUnmarshaller.Instance; var item = unmarshaller.Unmarshall(context); unmarshalledObject.Parameters.Add(item); continue; } if (context.TestExpression("PermissionModel", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.PermissionModel = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Regions/member", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; var item = unmarshaller.Unmarshall(context); unmarshalledObject.Regions.Add(item); continue; } if (context.TestExpression("StackSetARN", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.StackSetARN = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("StackSetDriftDetectionDetails", targetDepth)) { var unmarshaller = StackSetDriftDetectionDetailsUnmarshaller.Instance; unmarshalledObject.StackSetDriftDetectionDetails = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("StackSetId", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.StackSetId = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("StackSetName", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.StackSetName = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Status", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Status = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Tags/member", targetDepth)) { var unmarshaller = TagUnmarshaller.Instance; var item = unmarshaller.Unmarshall(context); unmarshalledObject.Tags.Add(item); continue; } if (context.TestExpression("TemplateBody", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.TemplateBody = unmarshaller.Unmarshall(context); continue; } } else if (context.IsEndElement && context.CurrentDepth < originalDepth) { return unmarshalledObject; } } return unmarshalledObject; } /// <summary> /// Unmarshaller error response to exception. /// </summary> /// <param name="context"></param> /// <returns></returns> public StackSet Unmarshall(JsonUnmarshallerContext context) { return null; } private static StackSetUnmarshaller _instance = new StackSetUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static StackSetUnmarshaller Instance { get { return _instance; } } } }
198
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudformation-2010-05-15.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.CloudFormation.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; namespace Amazon.CloudFormation.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for StackSummary Object /// </summary> public class StackSummaryUnmarshaller : IUnmarshaller<StackSummary, XmlUnmarshallerContext>, IUnmarshaller<StackSummary, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public StackSummary Unmarshall(XmlUnmarshallerContext context) { StackSummary unmarshalledObject = new StackSummary(); int originalDepth = context.CurrentDepth; int targetDepth = originalDepth + 1; if (context.IsStartOfDocument) targetDepth += 2; while (context.ReadAtDepth(originalDepth)) { if (context.IsStartElement || context.IsAttribute) { if (context.TestExpression("CreationTime", targetDepth)) { var unmarshaller = DateTimeUnmarshaller.Instance; unmarshalledObject.CreationTime = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("DeletionTime", targetDepth)) { var unmarshaller = DateTimeUnmarshaller.Instance; unmarshalledObject.DeletionTime = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("DriftInformation", targetDepth)) { var unmarshaller = StackDriftInformationSummaryUnmarshaller.Instance; unmarshalledObject.DriftInformation = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("LastUpdatedTime", targetDepth)) { var unmarshaller = DateTimeUnmarshaller.Instance; unmarshalledObject.LastUpdatedTime = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("ParentId", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.ParentId = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("RootId", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.RootId = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("StackId", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.StackId = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("StackName", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.StackName = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("StackStatus", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.StackStatus = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("StackStatusReason", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.StackStatusReason = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("TemplateDescription", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.TemplateDescription = unmarshaller.Unmarshall(context); continue; } } else if (context.IsEndElement && context.CurrentDepth < originalDepth) { return unmarshalledObject; } } return unmarshalledObject; } /// <summary> /// Unmarshaller error response to exception. /// </summary> /// <param name="context"></param> /// <returns></returns> public StackSummary Unmarshall(JsonUnmarshallerContext context) { return null; } private static StackSummaryUnmarshaller _instance = new StackSummaryUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static StackSummaryUnmarshaller Instance { get { return _instance; } } } }
157