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 appflow-2020-08-23.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.Appflow.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Appflow.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for AuthenticationConfig Object /// </summary> public class AuthenticationConfigUnmarshaller : IUnmarshaller<AuthenticationConfig, XmlUnmarshallerContext>, IUnmarshaller<AuthenticationConfig, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> AuthenticationConfig IUnmarshaller<AuthenticationConfig, XmlUnmarshallerContext>.Unmarshall(XmlUnmarshallerContext context) { throw new NotImplementedException(); } /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public AuthenticationConfig Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; AuthenticationConfig unmarshalledObject = new AuthenticationConfig(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("customAuthConfigs", targetDepth)) { var unmarshaller = new ListUnmarshaller<CustomAuthConfig, CustomAuthConfigUnmarshaller>(CustomAuthConfigUnmarshaller.Instance); unmarshalledObject.CustomAuthConfigs = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("isApiKeyAuthSupported", targetDepth)) { var unmarshaller = BoolUnmarshaller.Instance; unmarshalledObject.IsApiKeyAuthSupported = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("isBasicAuthSupported", targetDepth)) { var unmarshaller = BoolUnmarshaller.Instance; unmarshalledObject.IsBasicAuthSupported = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("isCustomAuthSupported", targetDepth)) { var unmarshaller = BoolUnmarshaller.Instance; unmarshalledObject.IsCustomAuthSupported = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("isOAuth2Supported", targetDepth)) { var unmarshaller = BoolUnmarshaller.Instance; unmarshalledObject.IsOAuth2Supported = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("oAuth2Defaults", targetDepth)) { var unmarshaller = OAuth2DefaultsUnmarshaller.Instance; unmarshalledObject.OAuth2Defaults = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static AuthenticationConfigUnmarshaller _instance = new AuthenticationConfigUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static AuthenticationConfigUnmarshaller 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 appflow-2020-08-23.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.Appflow.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Appflow.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for AuthParameter Object /// </summary> public class AuthParameterUnmarshaller : IUnmarshaller<AuthParameter, XmlUnmarshallerContext>, IUnmarshaller<AuthParameter, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> AuthParameter IUnmarshaller<AuthParameter, XmlUnmarshallerContext>.Unmarshall(XmlUnmarshallerContext context) { throw new NotImplementedException(); } /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public AuthParameter Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; AuthParameter unmarshalledObject = new AuthParameter(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("connectorSuppliedValues", targetDepth)) { var unmarshaller = new ListUnmarshaller<string, StringUnmarshaller>(StringUnmarshaller.Instance); unmarshalledObject.ConnectorSuppliedValues = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("description", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Description = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("isRequired", targetDepth)) { var unmarshaller = BoolUnmarshaller.Instance; unmarshalledObject.IsRequired = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("isSensitiveField", targetDepth)) { var unmarshaller = BoolUnmarshaller.Instance; unmarshalledObject.IsSensitiveField = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("key", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Key = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("label", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Label = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static AuthParameterUnmarshaller _instance = new AuthParameterUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static AuthParameterUnmarshaller 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 appflow-2020-08-23.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.Appflow.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Appflow.Model.Internal.MarshallTransformations { /// <summary> /// BasicAuthCredentials Marshaller /// </summary> public class BasicAuthCredentialsMarshaller : IRequestMarshaller<BasicAuthCredentials, JsonMarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="requestObject"></param> /// <param name="context"></param> /// <returns></returns> public void Marshall(BasicAuthCredentials requestObject, JsonMarshallerContext context) { if(requestObject.IsSetPassword()) { context.Writer.WritePropertyName("password"); context.Writer.Write(requestObject.Password); } if(requestObject.IsSetUsername()) { context.Writer.WritePropertyName("username"); context.Writer.Write(requestObject.Username); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static BasicAuthCredentialsMarshaller Instance = new BasicAuthCredentialsMarshaller(); } }
68
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the appflow-2020-08-23.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.Appflow.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Appflow.Model.Internal.MarshallTransformations { /// <summary> /// CancelFlowExecutions Request Marshaller /// </summary> public class CancelFlowExecutionsRequestMarshaller : IMarshaller<IRequest, CancelFlowExecutionsRequest> , 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((CancelFlowExecutionsRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(CancelFlowExecutionsRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.Appflow"); request.Headers["Content-Type"] = "application/json"; request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2020-08-23"; request.HttpMethod = "POST"; request.ResourcePath = "/cancel-flow-executions"; using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) { JsonWriter writer = new JsonWriter(stringWriter); writer.WriteObjectStart(); var context = new JsonMarshallerContext(request, writer); if(publicRequest.IsSetExecutionIds()) { context.Writer.WritePropertyName("executionIds"); context.Writer.WriteArrayStart(); foreach(var publicRequestExecutionIdsListValue in publicRequest.ExecutionIds) { context.Writer.Write(publicRequestExecutionIdsListValue); } context.Writer.WriteArrayEnd(); } if(publicRequest.IsSetFlowName()) { context.Writer.WritePropertyName("flowName"); context.Writer.Write(publicRequest.FlowName); } writer.WriteObjectEnd(); string snippet = stringWriter.ToString(); request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); } return request; } private static CancelFlowExecutionsRequestMarshaller _instance = new CancelFlowExecutionsRequestMarshaller(); internal static CancelFlowExecutionsRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static CancelFlowExecutionsRequestMarshaller Instance { get { return _instance; } } } }
112
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the appflow-2020-08-23.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.Appflow.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Appflow.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for CancelFlowExecutions operation /// </summary> public class CancelFlowExecutionsResponseUnmarshaller : JsonResponseUnmarshaller { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { CancelFlowExecutionsResponse response = new CancelFlowExecutionsResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("invalidExecutions", targetDepth)) { var unmarshaller = new ListUnmarshaller<string, StringUnmarshaller>(StringUnmarshaller.Instance); response.InvalidExecutions = unmarshaller.Unmarshall(context); continue; } } return response; } /// <summary> /// Unmarshaller error response to exception. /// </summary> /// <param name="context"></param> /// <param name="innerException"></param> /// <param name="statusCode"></param> /// <returns></returns> public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) { var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context); errorResponse.InnerException = innerException; errorResponse.StatusCode = statusCode; var responseBodyBytes = context.GetResponseBodyBytes(); using (var streamCopy = new MemoryStream(responseBodyBytes)) using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null)) { if (errorResponse.Code != null && errorResponse.Code.Equals("AccessDeniedException")) { return AccessDeniedExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("InternalServerException")) { return InternalServerExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ResourceNotFoundException")) { return ResourceNotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ThrottlingException")) { return ThrottlingExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ValidationException")) { return ValidationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonAppflowException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static CancelFlowExecutionsResponseUnmarshaller _instance = new CancelFlowExecutionsResponseUnmarshaller(); internal static CancelFlowExecutionsResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static CancelFlowExecutionsResponseUnmarshaller Instance { get { return _instance; } } } }
126
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the appflow-2020-08-23.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.Appflow.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Appflow.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for ConflictException Object /// </summary> public class ConflictExceptionUnmarshaller : IErrorResponseUnmarshaller<ConflictException, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public ConflictException Unmarshall(JsonUnmarshallerContext context) { return this.Unmarshall(context, new Amazon.Runtime.Internal.ErrorResponse()); } /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <param name="errorResponse"></param> /// <returns></returns> public ConflictException Unmarshall(JsonUnmarshallerContext context, Amazon.Runtime.Internal.ErrorResponse errorResponse) { context.Read(); ConflictException unmarshalledObject = new ConflictException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { } return unmarshalledObject; } private static ConflictExceptionUnmarshaller _instance = new ConflictExceptionUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static ConflictExceptionUnmarshaller Instance { get { return _instance; } } } }
85
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the appflow-2020-08-23.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.Appflow.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Appflow.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for ConnectorAuthenticationException Object /// </summary> public class ConnectorAuthenticationExceptionUnmarshaller : IErrorResponseUnmarshaller<ConnectorAuthenticationException, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public ConnectorAuthenticationException Unmarshall(JsonUnmarshallerContext context) { return this.Unmarshall(context, new Amazon.Runtime.Internal.ErrorResponse()); } /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <param name="errorResponse"></param> /// <returns></returns> public ConnectorAuthenticationException Unmarshall(JsonUnmarshallerContext context, Amazon.Runtime.Internal.ErrorResponse errorResponse) { context.Read(); ConnectorAuthenticationException unmarshalledObject = new ConnectorAuthenticationException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { } return unmarshalledObject; } private static ConnectorAuthenticationExceptionUnmarshaller _instance = new ConnectorAuthenticationExceptionUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static ConnectorAuthenticationExceptionUnmarshaller Instance { get { return _instance; } } } }
85
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the appflow-2020-08-23.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.Appflow.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Appflow.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for ConnectorConfiguration Object /// </summary> public class ConnectorConfigurationUnmarshaller : IUnmarshaller<ConnectorConfiguration, XmlUnmarshallerContext>, IUnmarshaller<ConnectorConfiguration, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> ConnectorConfiguration IUnmarshaller<ConnectorConfiguration, XmlUnmarshallerContext>.Unmarshall(XmlUnmarshallerContext context) { throw new NotImplementedException(); } /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public ConnectorConfiguration Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; ConnectorConfiguration unmarshalledObject = new ConnectorConfiguration(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("authenticationConfig", targetDepth)) { var unmarshaller = AuthenticationConfigUnmarshaller.Instance; unmarshalledObject.AuthenticationConfig = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("canUseAsDestination", targetDepth)) { var unmarshaller = BoolUnmarshaller.Instance; unmarshalledObject.CanUseAsDestination = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("canUseAsSource", targetDepth)) { var unmarshaller = BoolUnmarshaller.Instance; unmarshalledObject.CanUseAsSource = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("connectorArn", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.ConnectorArn = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("connectorDescription", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.ConnectorDescription = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("connectorLabel", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.ConnectorLabel = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("connectorMetadata", targetDepth)) { var unmarshaller = ConnectorMetadataUnmarshaller.Instance; unmarshalledObject.ConnectorMetadata = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("connectorModes", targetDepth)) { var unmarshaller = new ListUnmarshaller<string, StringUnmarshaller>(StringUnmarshaller.Instance); unmarshalledObject.ConnectorModes = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("connectorName", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.ConnectorName = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("connectorOwner", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.ConnectorOwner = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("connectorProvisioningConfig", targetDepth)) { var unmarshaller = ConnectorProvisioningConfigUnmarshaller.Instance; unmarshalledObject.ConnectorProvisioningConfig = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("connectorProvisioningType", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.ConnectorProvisioningType = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("connectorRuntimeSettings", targetDepth)) { var unmarshaller = new ListUnmarshaller<ConnectorRuntimeSetting, ConnectorRuntimeSettingUnmarshaller>(ConnectorRuntimeSettingUnmarshaller.Instance); unmarshalledObject.ConnectorRuntimeSettings = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("connectorType", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.ConnectorType = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("connectorVersion", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.ConnectorVersion = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("isPrivateLinkEnabled", targetDepth)) { var unmarshaller = BoolUnmarshaller.Instance; unmarshalledObject.IsPrivateLinkEnabled = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("isPrivateLinkEndpointUrlRequired", targetDepth)) { var unmarshaller = BoolUnmarshaller.Instance; unmarshalledObject.IsPrivateLinkEndpointUrlRequired = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("logoURL", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.LogoURL = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("registeredAt", targetDepth)) { var unmarshaller = DateTimeUnmarshaller.Instance; unmarshalledObject.RegisteredAt = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("registeredBy", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.RegisteredBy = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("supportedApiVersions", targetDepth)) { var unmarshaller = new ListUnmarshaller<string, StringUnmarshaller>(StringUnmarshaller.Instance); unmarshalledObject.SupportedApiVersions = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("supportedDataTransferApis", targetDepth)) { var unmarshaller = new ListUnmarshaller<DataTransferApi, DataTransferApiUnmarshaller>(DataTransferApiUnmarshaller.Instance); unmarshalledObject.SupportedDataTransferApis = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("supportedDataTransferTypes", targetDepth)) { var unmarshaller = new ListUnmarshaller<string, StringUnmarshaller>(StringUnmarshaller.Instance); unmarshalledObject.SupportedDataTransferTypes = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("supportedDestinationConnectors", targetDepth)) { var unmarshaller = new ListUnmarshaller<string, StringUnmarshaller>(StringUnmarshaller.Instance); unmarshalledObject.SupportedDestinationConnectors = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("supportedOperators", targetDepth)) { var unmarshaller = new ListUnmarshaller<string, StringUnmarshaller>(StringUnmarshaller.Instance); unmarshalledObject.SupportedOperators = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("supportedSchedulingFrequencies", targetDepth)) { var unmarshaller = new ListUnmarshaller<string, StringUnmarshaller>(StringUnmarshaller.Instance); unmarshalledObject.SupportedSchedulingFrequencies = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("supportedTriggerTypes", targetDepth)) { var unmarshaller = new ListUnmarshaller<string, StringUnmarshaller>(StringUnmarshaller.Instance); unmarshalledObject.SupportedTriggerTypes = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("supportedWriteOperations", targetDepth)) { var unmarshaller = new ListUnmarshaller<string, StringUnmarshaller>(StringUnmarshaller.Instance); unmarshalledObject.SupportedWriteOperations = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static ConnectorConfigurationUnmarshaller _instance = new ConnectorConfigurationUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static ConnectorConfigurationUnmarshaller Instance { get { return _instance; } } } }
254
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the appflow-2020-08-23.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.Appflow.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Appflow.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for ConnectorDetail Object /// </summary> public class ConnectorDetailUnmarshaller : IUnmarshaller<ConnectorDetail, XmlUnmarshallerContext>, IUnmarshaller<ConnectorDetail, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> ConnectorDetail IUnmarshaller<ConnectorDetail, XmlUnmarshallerContext>.Unmarshall(XmlUnmarshallerContext context) { throw new NotImplementedException(); } /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public ConnectorDetail Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; ConnectorDetail unmarshalledObject = new ConnectorDetail(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("applicationType", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.ApplicationType = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("connectorDescription", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.ConnectorDescription = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("connectorLabel", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.ConnectorLabel = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("connectorModes", targetDepth)) { var unmarshaller = new ListUnmarshaller<string, StringUnmarshaller>(StringUnmarshaller.Instance); unmarshalledObject.ConnectorModes = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("connectorName", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.ConnectorName = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("connectorOwner", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.ConnectorOwner = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("connectorProvisioningType", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.ConnectorProvisioningType = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("connectorType", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.ConnectorType = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("connectorVersion", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.ConnectorVersion = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("registeredAt", targetDepth)) { var unmarshaller = DateTimeUnmarshaller.Instance; unmarshalledObject.RegisteredAt = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("registeredBy", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.RegisteredBy = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("supportedDataTransferTypes", targetDepth)) { var unmarshaller = new ListUnmarshaller<string, StringUnmarshaller>(StringUnmarshaller.Instance); unmarshalledObject.SupportedDataTransferTypes = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static ConnectorDetailUnmarshaller _instance = new ConnectorDetailUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static ConnectorDetailUnmarshaller Instance { get { return _instance; } } } }
158
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the appflow-2020-08-23.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.Appflow.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Appflow.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for ConnectorEntityField Object /// </summary> public class ConnectorEntityFieldUnmarshaller : IUnmarshaller<ConnectorEntityField, XmlUnmarshallerContext>, IUnmarshaller<ConnectorEntityField, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> ConnectorEntityField IUnmarshaller<ConnectorEntityField, XmlUnmarshallerContext>.Unmarshall(XmlUnmarshallerContext context) { throw new NotImplementedException(); } /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public ConnectorEntityField Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; ConnectorEntityField unmarshalledObject = new ConnectorEntityField(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("customProperties", targetDepth)) { var unmarshaller = new DictionaryUnmarshaller<string, string, StringUnmarshaller, StringUnmarshaller>(StringUnmarshaller.Instance, StringUnmarshaller.Instance); unmarshalledObject.CustomProperties = unmarshaller.Unmarshall(context); continue; } 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("destinationProperties", targetDepth)) { var unmarshaller = DestinationFieldPropertiesUnmarshaller.Instance; unmarshalledObject.DestinationProperties = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("identifier", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Identifier = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("isDeprecated", targetDepth)) { var unmarshaller = BoolUnmarshaller.Instance; unmarshalledObject.IsDeprecated = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("isPrimaryKey", targetDepth)) { var unmarshaller = BoolUnmarshaller.Instance; unmarshalledObject.IsPrimaryKey = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("label", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Label = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("parentIdentifier", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.ParentIdentifier = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("sourceProperties", targetDepth)) { var unmarshaller = SourceFieldPropertiesUnmarshaller.Instance; unmarshalledObject.SourceProperties = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("supportedFieldTypeDetails", targetDepth)) { var unmarshaller = SupportedFieldTypeDetailsUnmarshaller.Instance; unmarshalledObject.SupportedFieldTypeDetails = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static ConnectorEntityFieldUnmarshaller _instance = new ConnectorEntityFieldUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static ConnectorEntityFieldUnmarshaller 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 appflow-2020-08-23.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.Appflow.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Appflow.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for ConnectorEntity Object /// </summary> public class ConnectorEntityUnmarshaller : IUnmarshaller<ConnectorEntity, XmlUnmarshallerContext>, IUnmarshaller<ConnectorEntity, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> ConnectorEntity IUnmarshaller<ConnectorEntity, XmlUnmarshallerContext>.Unmarshall(XmlUnmarshallerContext context) { throw new NotImplementedException(); } /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public ConnectorEntity Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; ConnectorEntity unmarshalledObject = new ConnectorEntity(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("hasNestedEntities", targetDepth)) { var unmarshaller = BoolUnmarshaller.Instance; unmarshalledObject.HasNestedEntities = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("label", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Label = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("name", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Name = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static ConnectorEntityUnmarshaller _instance = new ConnectorEntityUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static ConnectorEntityUnmarshaller 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 appflow-2020-08-23.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.Appflow.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Appflow.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for ConnectorMetadata Object /// </summary> public class ConnectorMetadataUnmarshaller : IUnmarshaller<ConnectorMetadata, XmlUnmarshallerContext>, IUnmarshaller<ConnectorMetadata, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> ConnectorMetadata IUnmarshaller<ConnectorMetadata, XmlUnmarshallerContext>.Unmarshall(XmlUnmarshallerContext context) { throw new NotImplementedException(); } /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public ConnectorMetadata Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; ConnectorMetadata unmarshalledObject = new ConnectorMetadata(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("Amplitude", targetDepth)) { var unmarshaller = AmplitudeMetadataUnmarshaller.Instance; unmarshalledObject.Amplitude = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("CustomerProfiles", targetDepth)) { var unmarshaller = CustomerProfilesMetadataUnmarshaller.Instance; unmarshalledObject.CustomerProfiles = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Datadog", targetDepth)) { var unmarshaller = DatadogMetadataUnmarshaller.Instance; unmarshalledObject.Datadog = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Dynatrace", targetDepth)) { var unmarshaller = DynatraceMetadataUnmarshaller.Instance; unmarshalledObject.Dynatrace = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("EventBridge", targetDepth)) { var unmarshaller = EventBridgeMetadataUnmarshaller.Instance; unmarshalledObject.EventBridge = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("GoogleAnalytics", targetDepth)) { var unmarshaller = GoogleAnalyticsMetadataUnmarshaller.Instance; unmarshalledObject.GoogleAnalytics = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Honeycode", targetDepth)) { var unmarshaller = HoneycodeMetadataUnmarshaller.Instance; unmarshalledObject.Honeycode = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("InforNexus", targetDepth)) { var unmarshaller = InforNexusMetadataUnmarshaller.Instance; unmarshalledObject.InforNexus = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Marketo", targetDepth)) { var unmarshaller = MarketoMetadataUnmarshaller.Instance; unmarshalledObject.Marketo = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Pardot", targetDepth)) { var unmarshaller = PardotMetadataUnmarshaller.Instance; unmarshalledObject.Pardot = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Redshift", targetDepth)) { var unmarshaller = RedshiftMetadataUnmarshaller.Instance; unmarshalledObject.Redshift = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("S3", targetDepth)) { var unmarshaller = S3MetadataUnmarshaller.Instance; unmarshalledObject.S3 = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Salesforce", targetDepth)) { var unmarshaller = SalesforceMetadataUnmarshaller.Instance; unmarshalledObject.Salesforce = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("SAPOData", targetDepth)) { var unmarshaller = SAPODataMetadataUnmarshaller.Instance; unmarshalledObject.SAPOData = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("ServiceNow", targetDepth)) { var unmarshaller = ServiceNowMetadataUnmarshaller.Instance; unmarshalledObject.ServiceNow = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Singular", targetDepth)) { var unmarshaller = SingularMetadataUnmarshaller.Instance; unmarshalledObject.Singular = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Slack", targetDepth)) { var unmarshaller = SlackMetadataUnmarshaller.Instance; unmarshalledObject.Slack = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Snowflake", targetDepth)) { var unmarshaller = SnowflakeMetadataUnmarshaller.Instance; unmarshalledObject.Snowflake = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Trendmicro", targetDepth)) { var unmarshaller = TrendmicroMetadataUnmarshaller.Instance; unmarshalledObject.Trendmicro = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Upsolver", targetDepth)) { var unmarshaller = UpsolverMetadataUnmarshaller.Instance; unmarshalledObject.Upsolver = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Veeva", targetDepth)) { var unmarshaller = VeevaMetadataUnmarshaller.Instance; unmarshalledObject.Veeva = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Zendesk", targetDepth)) { var unmarshaller = ZendeskMetadataUnmarshaller.Instance; unmarshalledObject.Zendesk = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static ConnectorMetadataUnmarshaller _instance = new ConnectorMetadataUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static ConnectorMetadataUnmarshaller Instance { get { return _instance; } } } }
218
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the appflow-2020-08-23.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.Appflow.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Appflow.Model.Internal.MarshallTransformations { /// <summary> /// ConnectorOAuthRequest Marshaller /// </summary> public class ConnectorOAuthRequestMarshaller : IRequestMarshaller<ConnectorOAuthRequest, JsonMarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="requestObject"></param> /// <param name="context"></param> /// <returns></returns> public void Marshall(ConnectorOAuthRequest requestObject, JsonMarshallerContext context) { if(requestObject.IsSetAuthCode()) { context.Writer.WritePropertyName("authCode"); context.Writer.Write(requestObject.AuthCode); } if(requestObject.IsSetRedirectUri()) { context.Writer.WritePropertyName("redirectUri"); context.Writer.Write(requestObject.RedirectUri); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static ConnectorOAuthRequestMarshaller Instance = new ConnectorOAuthRequestMarshaller(); } }
68
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the appflow-2020-08-23.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.Appflow.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Appflow.Model.Internal.MarshallTransformations { /// <summary> /// ConnectorOperator Marshaller /// </summary> public class ConnectorOperatorMarshaller : IRequestMarshaller<ConnectorOperator, JsonMarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="requestObject"></param> /// <param name="context"></param> /// <returns></returns> public void Marshall(ConnectorOperator requestObject, JsonMarshallerContext context) { if(requestObject.IsSetAmplitude()) { context.Writer.WritePropertyName("Amplitude"); context.Writer.Write(requestObject.Amplitude); } if(requestObject.IsSetCustomConnector()) { context.Writer.WritePropertyName("CustomConnector"); context.Writer.Write(requestObject.CustomConnector); } if(requestObject.IsSetDatadog()) { context.Writer.WritePropertyName("Datadog"); context.Writer.Write(requestObject.Datadog); } if(requestObject.IsSetDynatrace()) { context.Writer.WritePropertyName("Dynatrace"); context.Writer.Write(requestObject.Dynatrace); } if(requestObject.IsSetGoogleAnalytics()) { context.Writer.WritePropertyName("GoogleAnalytics"); context.Writer.Write(requestObject.GoogleAnalytics); } if(requestObject.IsSetInforNexus()) { context.Writer.WritePropertyName("InforNexus"); context.Writer.Write(requestObject.InforNexus); } if(requestObject.IsSetMarketo()) { context.Writer.WritePropertyName("Marketo"); context.Writer.Write(requestObject.Marketo); } if(requestObject.IsSetPardot()) { context.Writer.WritePropertyName("Pardot"); context.Writer.Write(requestObject.Pardot); } if(requestObject.IsSetS3()) { context.Writer.WritePropertyName("S3"); context.Writer.Write(requestObject.S3); } if(requestObject.IsSetSalesforce()) { context.Writer.WritePropertyName("Salesforce"); context.Writer.Write(requestObject.Salesforce); } if(requestObject.IsSetSAPOData()) { context.Writer.WritePropertyName("SAPOData"); context.Writer.Write(requestObject.SAPOData); } if(requestObject.IsSetServiceNow()) { context.Writer.WritePropertyName("ServiceNow"); context.Writer.Write(requestObject.ServiceNow); } if(requestObject.IsSetSingular()) { context.Writer.WritePropertyName("Singular"); context.Writer.Write(requestObject.Singular); } if(requestObject.IsSetSlack()) { context.Writer.WritePropertyName("Slack"); context.Writer.Write(requestObject.Slack); } if(requestObject.IsSetTrendmicro()) { context.Writer.WritePropertyName("Trendmicro"); context.Writer.Write(requestObject.Trendmicro); } if(requestObject.IsSetVeeva()) { context.Writer.WritePropertyName("Veeva"); context.Writer.Write(requestObject.Veeva); } if(requestObject.IsSetZendesk()) { context.Writer.WritePropertyName("Zendesk"); context.Writer.Write(requestObject.Zendesk); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static ConnectorOperatorMarshaller Instance = new ConnectorOperatorMarshaller(); } }
158
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the appflow-2020-08-23.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.Appflow.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Appflow.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for ConnectorOperator Object /// </summary> public class ConnectorOperatorUnmarshaller : IUnmarshaller<ConnectorOperator, XmlUnmarshallerContext>, IUnmarshaller<ConnectorOperator, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> ConnectorOperator IUnmarshaller<ConnectorOperator, XmlUnmarshallerContext>.Unmarshall(XmlUnmarshallerContext context) { throw new NotImplementedException(); } /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public ConnectorOperator Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; ConnectorOperator unmarshalledObject = new ConnectorOperator(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("Amplitude", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Amplitude = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("CustomConnector", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.CustomConnector = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Datadog", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Datadog = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Dynatrace", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Dynatrace = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("GoogleAnalytics", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.GoogleAnalytics = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("InforNexus", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.InforNexus = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Marketo", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Marketo = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Pardot", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Pardot = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("S3", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.S3 = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Salesforce", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Salesforce = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("SAPOData", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.SAPOData = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("ServiceNow", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.ServiceNow = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Singular", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Singular = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Slack", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Slack = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Trendmicro", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Trendmicro = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Veeva", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Veeva = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Zendesk", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Zendesk = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static ConnectorOperatorUnmarshaller _instance = new ConnectorOperatorUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static ConnectorOperatorUnmarshaller Instance { get { return _instance; } } } }
188
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the appflow-2020-08-23.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.Appflow.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Appflow.Model.Internal.MarshallTransformations { /// <summary> /// ConnectorProfileConfig Marshaller /// </summary> public class ConnectorProfileConfigMarshaller : IRequestMarshaller<ConnectorProfileConfig, JsonMarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="requestObject"></param> /// <param name="context"></param> /// <returns></returns> public void Marshall(ConnectorProfileConfig requestObject, JsonMarshallerContext context) { if(requestObject.IsSetConnectorProfileCredentials()) { context.Writer.WritePropertyName("connectorProfileCredentials"); context.Writer.WriteObjectStart(); var marshaller = ConnectorProfileCredentialsMarshaller.Instance; marshaller.Marshall(requestObject.ConnectorProfileCredentials, context); context.Writer.WriteObjectEnd(); } if(requestObject.IsSetConnectorProfileProperties()) { context.Writer.WritePropertyName("connectorProfileProperties"); context.Writer.WriteObjectStart(); var marshaller = ConnectorProfilePropertiesMarshaller.Instance; marshaller.Marshall(requestObject.ConnectorProfileProperties, context); context.Writer.WriteObjectEnd(); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static ConnectorProfileConfigMarshaller Instance = new ConnectorProfileConfigMarshaller(); } }
78
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the appflow-2020-08-23.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.Appflow.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Appflow.Model.Internal.MarshallTransformations { /// <summary> /// ConnectorProfileCredentials Marshaller /// </summary> public class ConnectorProfileCredentialsMarshaller : IRequestMarshaller<ConnectorProfileCredentials, JsonMarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="requestObject"></param> /// <param name="context"></param> /// <returns></returns> public void Marshall(ConnectorProfileCredentials requestObject, JsonMarshallerContext context) { if(requestObject.IsSetAmplitude()) { context.Writer.WritePropertyName("Amplitude"); context.Writer.WriteObjectStart(); var marshaller = AmplitudeConnectorProfileCredentialsMarshaller.Instance; marshaller.Marshall(requestObject.Amplitude, context); context.Writer.WriteObjectEnd(); } if(requestObject.IsSetCustomConnector()) { context.Writer.WritePropertyName("CustomConnector"); context.Writer.WriteObjectStart(); var marshaller = CustomConnectorProfileCredentialsMarshaller.Instance; marshaller.Marshall(requestObject.CustomConnector, context); context.Writer.WriteObjectEnd(); } if(requestObject.IsSetDatadog()) { context.Writer.WritePropertyName("Datadog"); context.Writer.WriteObjectStart(); var marshaller = DatadogConnectorProfileCredentialsMarshaller.Instance; marshaller.Marshall(requestObject.Datadog, context); context.Writer.WriteObjectEnd(); } if(requestObject.IsSetDynatrace()) { context.Writer.WritePropertyName("Dynatrace"); context.Writer.WriteObjectStart(); var marshaller = DynatraceConnectorProfileCredentialsMarshaller.Instance; marshaller.Marshall(requestObject.Dynatrace, context); context.Writer.WriteObjectEnd(); } if(requestObject.IsSetGoogleAnalytics()) { context.Writer.WritePropertyName("GoogleAnalytics"); context.Writer.WriteObjectStart(); var marshaller = GoogleAnalyticsConnectorProfileCredentialsMarshaller.Instance; marshaller.Marshall(requestObject.GoogleAnalytics, context); context.Writer.WriteObjectEnd(); } if(requestObject.IsSetHoneycode()) { context.Writer.WritePropertyName("Honeycode"); context.Writer.WriteObjectStart(); var marshaller = HoneycodeConnectorProfileCredentialsMarshaller.Instance; marshaller.Marshall(requestObject.Honeycode, context); context.Writer.WriteObjectEnd(); } if(requestObject.IsSetInforNexus()) { context.Writer.WritePropertyName("InforNexus"); context.Writer.WriteObjectStart(); var marshaller = InforNexusConnectorProfileCredentialsMarshaller.Instance; marshaller.Marshall(requestObject.InforNexus, context); context.Writer.WriteObjectEnd(); } if(requestObject.IsSetMarketo()) { context.Writer.WritePropertyName("Marketo"); context.Writer.WriteObjectStart(); var marshaller = MarketoConnectorProfileCredentialsMarshaller.Instance; marshaller.Marshall(requestObject.Marketo, context); context.Writer.WriteObjectEnd(); } if(requestObject.IsSetPardot()) { context.Writer.WritePropertyName("Pardot"); context.Writer.WriteObjectStart(); var marshaller = PardotConnectorProfileCredentialsMarshaller.Instance; marshaller.Marshall(requestObject.Pardot, context); context.Writer.WriteObjectEnd(); } if(requestObject.IsSetRedshift()) { context.Writer.WritePropertyName("Redshift"); context.Writer.WriteObjectStart(); var marshaller = RedshiftConnectorProfileCredentialsMarshaller.Instance; marshaller.Marshall(requestObject.Redshift, context); context.Writer.WriteObjectEnd(); } if(requestObject.IsSetSalesforce()) { context.Writer.WritePropertyName("Salesforce"); context.Writer.WriteObjectStart(); var marshaller = SalesforceConnectorProfileCredentialsMarshaller.Instance; marshaller.Marshall(requestObject.Salesforce, context); context.Writer.WriteObjectEnd(); } if(requestObject.IsSetSAPOData()) { context.Writer.WritePropertyName("SAPOData"); context.Writer.WriteObjectStart(); var marshaller = SAPODataConnectorProfileCredentialsMarshaller.Instance; marshaller.Marshall(requestObject.SAPOData, context); context.Writer.WriteObjectEnd(); } if(requestObject.IsSetServiceNow()) { context.Writer.WritePropertyName("ServiceNow"); context.Writer.WriteObjectStart(); var marshaller = ServiceNowConnectorProfileCredentialsMarshaller.Instance; marshaller.Marshall(requestObject.ServiceNow, context); context.Writer.WriteObjectEnd(); } if(requestObject.IsSetSingular()) { context.Writer.WritePropertyName("Singular"); context.Writer.WriteObjectStart(); var marshaller = SingularConnectorProfileCredentialsMarshaller.Instance; marshaller.Marshall(requestObject.Singular, context); context.Writer.WriteObjectEnd(); } if(requestObject.IsSetSlack()) { context.Writer.WritePropertyName("Slack"); context.Writer.WriteObjectStart(); var marshaller = SlackConnectorProfileCredentialsMarshaller.Instance; marshaller.Marshall(requestObject.Slack, context); context.Writer.WriteObjectEnd(); } if(requestObject.IsSetSnowflake()) { context.Writer.WritePropertyName("Snowflake"); context.Writer.WriteObjectStart(); var marshaller = SnowflakeConnectorProfileCredentialsMarshaller.Instance; marshaller.Marshall(requestObject.Snowflake, context); context.Writer.WriteObjectEnd(); } if(requestObject.IsSetTrendmicro()) { context.Writer.WritePropertyName("Trendmicro"); context.Writer.WriteObjectStart(); var marshaller = TrendmicroConnectorProfileCredentialsMarshaller.Instance; marshaller.Marshall(requestObject.Trendmicro, context); context.Writer.WriteObjectEnd(); } if(requestObject.IsSetVeeva()) { context.Writer.WritePropertyName("Veeva"); context.Writer.WriteObjectStart(); var marshaller = VeevaConnectorProfileCredentialsMarshaller.Instance; marshaller.Marshall(requestObject.Veeva, context); context.Writer.WriteObjectEnd(); } if(requestObject.IsSetZendesk()) { context.Writer.WritePropertyName("Zendesk"); context.Writer.WriteObjectStart(); var marshaller = ZendeskConnectorProfileCredentialsMarshaller.Instance; marshaller.Marshall(requestObject.Zendesk, context); context.Writer.WriteObjectEnd(); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static ConnectorProfileCredentialsMarshaller Instance = new ConnectorProfileCredentialsMarshaller(); } }
265
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the appflow-2020-08-23.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.Appflow.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Appflow.Model.Internal.MarshallTransformations { /// <summary> /// ConnectorProfileProperties Marshaller /// </summary> public class ConnectorProfilePropertiesMarshaller : IRequestMarshaller<ConnectorProfileProperties, JsonMarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="requestObject"></param> /// <param name="context"></param> /// <returns></returns> public void Marshall(ConnectorProfileProperties requestObject, JsonMarshallerContext context) { if(requestObject.IsSetAmplitude()) { context.Writer.WritePropertyName("Amplitude"); context.Writer.WriteObjectStart(); var marshaller = AmplitudeConnectorProfilePropertiesMarshaller.Instance; marshaller.Marshall(requestObject.Amplitude, context); context.Writer.WriteObjectEnd(); } if(requestObject.IsSetCustomConnector()) { context.Writer.WritePropertyName("CustomConnector"); context.Writer.WriteObjectStart(); var marshaller = CustomConnectorProfilePropertiesMarshaller.Instance; marshaller.Marshall(requestObject.CustomConnector, context); context.Writer.WriteObjectEnd(); } if(requestObject.IsSetDatadog()) { context.Writer.WritePropertyName("Datadog"); context.Writer.WriteObjectStart(); var marshaller = DatadogConnectorProfilePropertiesMarshaller.Instance; marshaller.Marshall(requestObject.Datadog, context); context.Writer.WriteObjectEnd(); } if(requestObject.IsSetDynatrace()) { context.Writer.WritePropertyName("Dynatrace"); context.Writer.WriteObjectStart(); var marshaller = DynatraceConnectorProfilePropertiesMarshaller.Instance; marshaller.Marshall(requestObject.Dynatrace, context); context.Writer.WriteObjectEnd(); } if(requestObject.IsSetGoogleAnalytics()) { context.Writer.WritePropertyName("GoogleAnalytics"); context.Writer.WriteObjectStart(); var marshaller = GoogleAnalyticsConnectorProfilePropertiesMarshaller.Instance; marshaller.Marshall(requestObject.GoogleAnalytics, context); context.Writer.WriteObjectEnd(); } if(requestObject.IsSetHoneycode()) { context.Writer.WritePropertyName("Honeycode"); context.Writer.WriteObjectStart(); var marshaller = HoneycodeConnectorProfilePropertiesMarshaller.Instance; marshaller.Marshall(requestObject.Honeycode, context); context.Writer.WriteObjectEnd(); } if(requestObject.IsSetInforNexus()) { context.Writer.WritePropertyName("InforNexus"); context.Writer.WriteObjectStart(); var marshaller = InforNexusConnectorProfilePropertiesMarshaller.Instance; marshaller.Marshall(requestObject.InforNexus, context); context.Writer.WriteObjectEnd(); } if(requestObject.IsSetMarketo()) { context.Writer.WritePropertyName("Marketo"); context.Writer.WriteObjectStart(); var marshaller = MarketoConnectorProfilePropertiesMarshaller.Instance; marshaller.Marshall(requestObject.Marketo, context); context.Writer.WriteObjectEnd(); } if(requestObject.IsSetPardot()) { context.Writer.WritePropertyName("Pardot"); context.Writer.WriteObjectStart(); var marshaller = PardotConnectorProfilePropertiesMarshaller.Instance; marshaller.Marshall(requestObject.Pardot, context); context.Writer.WriteObjectEnd(); } if(requestObject.IsSetRedshift()) { context.Writer.WritePropertyName("Redshift"); context.Writer.WriteObjectStart(); var marshaller = RedshiftConnectorProfilePropertiesMarshaller.Instance; marshaller.Marshall(requestObject.Redshift, context); context.Writer.WriteObjectEnd(); } if(requestObject.IsSetSalesforce()) { context.Writer.WritePropertyName("Salesforce"); context.Writer.WriteObjectStart(); var marshaller = SalesforceConnectorProfilePropertiesMarshaller.Instance; marshaller.Marshall(requestObject.Salesforce, context); context.Writer.WriteObjectEnd(); } if(requestObject.IsSetSAPOData()) { context.Writer.WritePropertyName("SAPOData"); context.Writer.WriteObjectStart(); var marshaller = SAPODataConnectorProfilePropertiesMarshaller.Instance; marshaller.Marshall(requestObject.SAPOData, context); context.Writer.WriteObjectEnd(); } if(requestObject.IsSetServiceNow()) { context.Writer.WritePropertyName("ServiceNow"); context.Writer.WriteObjectStart(); var marshaller = ServiceNowConnectorProfilePropertiesMarshaller.Instance; marshaller.Marshall(requestObject.ServiceNow, context); context.Writer.WriteObjectEnd(); } if(requestObject.IsSetSingular()) { context.Writer.WritePropertyName("Singular"); context.Writer.WriteObjectStart(); var marshaller = SingularConnectorProfilePropertiesMarshaller.Instance; marshaller.Marshall(requestObject.Singular, context); context.Writer.WriteObjectEnd(); } if(requestObject.IsSetSlack()) { context.Writer.WritePropertyName("Slack"); context.Writer.WriteObjectStart(); var marshaller = SlackConnectorProfilePropertiesMarshaller.Instance; marshaller.Marshall(requestObject.Slack, context); context.Writer.WriteObjectEnd(); } if(requestObject.IsSetSnowflake()) { context.Writer.WritePropertyName("Snowflake"); context.Writer.WriteObjectStart(); var marshaller = SnowflakeConnectorProfilePropertiesMarshaller.Instance; marshaller.Marshall(requestObject.Snowflake, context); context.Writer.WriteObjectEnd(); } if(requestObject.IsSetTrendmicro()) { context.Writer.WritePropertyName("Trendmicro"); context.Writer.WriteObjectStart(); var marshaller = TrendmicroConnectorProfilePropertiesMarshaller.Instance; marshaller.Marshall(requestObject.Trendmicro, context); context.Writer.WriteObjectEnd(); } if(requestObject.IsSetVeeva()) { context.Writer.WritePropertyName("Veeva"); context.Writer.WriteObjectStart(); var marshaller = VeevaConnectorProfilePropertiesMarshaller.Instance; marshaller.Marshall(requestObject.Veeva, context); context.Writer.WriteObjectEnd(); } if(requestObject.IsSetZendesk()) { context.Writer.WritePropertyName("Zendesk"); context.Writer.WriteObjectStart(); var marshaller = ZendeskConnectorProfilePropertiesMarshaller.Instance; marshaller.Marshall(requestObject.Zendesk, context); context.Writer.WriteObjectEnd(); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static ConnectorProfilePropertiesMarshaller Instance = new ConnectorProfilePropertiesMarshaller(); } }
265
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the appflow-2020-08-23.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.Appflow.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Appflow.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for ConnectorProfileProperties Object /// </summary> public class ConnectorProfilePropertiesUnmarshaller : IUnmarshaller<ConnectorProfileProperties, XmlUnmarshallerContext>, IUnmarshaller<ConnectorProfileProperties, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> ConnectorProfileProperties IUnmarshaller<ConnectorProfileProperties, XmlUnmarshallerContext>.Unmarshall(XmlUnmarshallerContext context) { throw new NotImplementedException(); } /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public ConnectorProfileProperties Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; ConnectorProfileProperties unmarshalledObject = new ConnectorProfileProperties(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("Amplitude", targetDepth)) { var unmarshaller = AmplitudeConnectorProfilePropertiesUnmarshaller.Instance; unmarshalledObject.Amplitude = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("CustomConnector", targetDepth)) { var unmarshaller = CustomConnectorProfilePropertiesUnmarshaller.Instance; unmarshalledObject.CustomConnector = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Datadog", targetDepth)) { var unmarshaller = DatadogConnectorProfilePropertiesUnmarshaller.Instance; unmarshalledObject.Datadog = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Dynatrace", targetDepth)) { var unmarshaller = DynatraceConnectorProfilePropertiesUnmarshaller.Instance; unmarshalledObject.Dynatrace = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("GoogleAnalytics", targetDepth)) { var unmarshaller = GoogleAnalyticsConnectorProfilePropertiesUnmarshaller.Instance; unmarshalledObject.GoogleAnalytics = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Honeycode", targetDepth)) { var unmarshaller = HoneycodeConnectorProfilePropertiesUnmarshaller.Instance; unmarshalledObject.Honeycode = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("InforNexus", targetDepth)) { var unmarshaller = InforNexusConnectorProfilePropertiesUnmarshaller.Instance; unmarshalledObject.InforNexus = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Marketo", targetDepth)) { var unmarshaller = MarketoConnectorProfilePropertiesUnmarshaller.Instance; unmarshalledObject.Marketo = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Pardot", targetDepth)) { var unmarshaller = PardotConnectorProfilePropertiesUnmarshaller.Instance; unmarshalledObject.Pardot = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Redshift", targetDepth)) { var unmarshaller = RedshiftConnectorProfilePropertiesUnmarshaller.Instance; unmarshalledObject.Redshift = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Salesforce", targetDepth)) { var unmarshaller = SalesforceConnectorProfilePropertiesUnmarshaller.Instance; unmarshalledObject.Salesforce = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("SAPOData", targetDepth)) { var unmarshaller = SAPODataConnectorProfilePropertiesUnmarshaller.Instance; unmarshalledObject.SAPOData = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("ServiceNow", targetDepth)) { var unmarshaller = ServiceNowConnectorProfilePropertiesUnmarshaller.Instance; unmarshalledObject.ServiceNow = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Singular", targetDepth)) { var unmarshaller = SingularConnectorProfilePropertiesUnmarshaller.Instance; unmarshalledObject.Singular = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Slack", targetDepth)) { var unmarshaller = SlackConnectorProfilePropertiesUnmarshaller.Instance; unmarshalledObject.Slack = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Snowflake", targetDepth)) { var unmarshaller = SnowflakeConnectorProfilePropertiesUnmarshaller.Instance; unmarshalledObject.Snowflake = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Trendmicro", targetDepth)) { var unmarshaller = TrendmicroConnectorProfilePropertiesUnmarshaller.Instance; unmarshalledObject.Trendmicro = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Veeva", targetDepth)) { var unmarshaller = VeevaConnectorProfilePropertiesUnmarshaller.Instance; unmarshalledObject.Veeva = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Zendesk", targetDepth)) { var unmarshaller = ZendeskConnectorProfilePropertiesUnmarshaller.Instance; unmarshalledObject.Zendesk = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static ConnectorProfilePropertiesUnmarshaller _instance = new ConnectorProfilePropertiesUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static ConnectorProfilePropertiesUnmarshaller Instance { get { return _instance; } } } }
200
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the appflow-2020-08-23.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.Appflow.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Appflow.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for ConnectorProfile Object /// </summary> public class ConnectorProfileUnmarshaller : IUnmarshaller<ConnectorProfile, XmlUnmarshallerContext>, IUnmarshaller<ConnectorProfile, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> ConnectorProfile IUnmarshaller<ConnectorProfile, XmlUnmarshallerContext>.Unmarshall(XmlUnmarshallerContext context) { throw new NotImplementedException(); } /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public ConnectorProfile Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; ConnectorProfile unmarshalledObject = new ConnectorProfile(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("connectionMode", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.ConnectionMode = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("connectorLabel", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.ConnectorLabel = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("connectorProfileArn", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.ConnectorProfileArn = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("connectorProfileName", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.ConnectorProfileName = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("connectorProfileProperties", targetDepth)) { var unmarshaller = ConnectorProfilePropertiesUnmarshaller.Instance; unmarshalledObject.ConnectorProfileProperties = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("connectorType", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.ConnectorType = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("createdAt", targetDepth)) { var unmarshaller = DateTimeUnmarshaller.Instance; unmarshalledObject.CreatedAt = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("credentialsArn", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.CredentialsArn = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("lastUpdatedAt", targetDepth)) { var unmarshaller = DateTimeUnmarshaller.Instance; unmarshalledObject.LastUpdatedAt = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("privateConnectionProvisioningState", targetDepth)) { var unmarshaller = PrivateConnectionProvisioningStateUnmarshaller.Instance; unmarshalledObject.PrivateConnectionProvisioningState = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static ConnectorProfileUnmarshaller _instance = new ConnectorProfileUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static ConnectorProfileUnmarshaller Instance { get { return _instance; } } } }
146
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the appflow-2020-08-23.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.Appflow.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Appflow.Model.Internal.MarshallTransformations { /// <summary> /// ConnectorProvisioningConfig Marshaller /// </summary> public class ConnectorProvisioningConfigMarshaller : IRequestMarshaller<ConnectorProvisioningConfig, JsonMarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="requestObject"></param> /// <param name="context"></param> /// <returns></returns> public void Marshall(ConnectorProvisioningConfig requestObject, JsonMarshallerContext context) { if(requestObject.IsSetLambda()) { context.Writer.WritePropertyName("lambda"); context.Writer.WriteObjectStart(); var marshaller = LambdaConnectorProvisioningConfigMarshaller.Instance; marshaller.Marshall(requestObject.Lambda, context); context.Writer.WriteObjectEnd(); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static ConnectorProvisioningConfigMarshaller Instance = new ConnectorProvisioningConfigMarshaller(); } }
67
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the appflow-2020-08-23.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.Appflow.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Appflow.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for ConnectorProvisioningConfig Object /// </summary> public class ConnectorProvisioningConfigUnmarshaller : IUnmarshaller<ConnectorProvisioningConfig, XmlUnmarshallerContext>, IUnmarshaller<ConnectorProvisioningConfig, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> ConnectorProvisioningConfig IUnmarshaller<ConnectorProvisioningConfig, XmlUnmarshallerContext>.Unmarshall(XmlUnmarshallerContext context) { throw new NotImplementedException(); } /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public ConnectorProvisioningConfig Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; ConnectorProvisioningConfig unmarshalledObject = new ConnectorProvisioningConfig(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("lambda", targetDepth)) { var unmarshaller = LambdaConnectorProvisioningConfigUnmarshaller.Instance; unmarshalledObject.Lambda = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static ConnectorProvisioningConfigUnmarshaller _instance = new ConnectorProvisioningConfigUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static ConnectorProvisioningConfigUnmarshaller Instance { get { return _instance; } } } }
92
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the appflow-2020-08-23.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.Appflow.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Appflow.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for ConnectorRuntimeSetting Object /// </summary> public class ConnectorRuntimeSettingUnmarshaller : IUnmarshaller<ConnectorRuntimeSetting, XmlUnmarshallerContext>, IUnmarshaller<ConnectorRuntimeSetting, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> ConnectorRuntimeSetting IUnmarshaller<ConnectorRuntimeSetting, XmlUnmarshallerContext>.Unmarshall(XmlUnmarshallerContext context) { throw new NotImplementedException(); } /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public ConnectorRuntimeSetting Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; ConnectorRuntimeSetting unmarshalledObject = new ConnectorRuntimeSetting(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("connectorSuppliedValueOptions", targetDepth)) { var unmarshaller = new ListUnmarshaller<string, StringUnmarshaller>(StringUnmarshaller.Instance); unmarshalledObject.ConnectorSuppliedValueOptions = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("dataType", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.DataType = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("description", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Description = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("isRequired", targetDepth)) { var unmarshaller = BoolUnmarshaller.Instance; unmarshalledObject.IsRequired = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("key", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Key = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("label", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Label = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("scope", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Scope = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static ConnectorRuntimeSettingUnmarshaller _instance = new ConnectorRuntimeSettingUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static ConnectorRuntimeSettingUnmarshaller 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 appflow-2020-08-23.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.Appflow.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Appflow.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for ConnectorServerException Object /// </summary> public class ConnectorServerExceptionUnmarshaller : IErrorResponseUnmarshaller<ConnectorServerException, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public ConnectorServerException Unmarshall(JsonUnmarshallerContext context) { return this.Unmarshall(context, new Amazon.Runtime.Internal.ErrorResponse()); } /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <param name="errorResponse"></param> /// <returns></returns> public ConnectorServerException Unmarshall(JsonUnmarshallerContext context, Amazon.Runtime.Internal.ErrorResponse errorResponse) { context.Read(); ConnectorServerException unmarshalledObject = new ConnectorServerException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { } return unmarshalledObject; } private static ConnectorServerExceptionUnmarshaller _instance = new ConnectorServerExceptionUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static ConnectorServerExceptionUnmarshaller Instance { get { return _instance; } } } }
85
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the appflow-2020-08-23.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.Appflow.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Appflow.Model.Internal.MarshallTransformations { /// <summary> /// CreateConnectorProfile Request Marshaller /// </summary> public class CreateConnectorProfileRequestMarshaller : IMarshaller<IRequest, CreateConnectorProfileRequest> , 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((CreateConnectorProfileRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(CreateConnectorProfileRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.Appflow"); request.Headers["Content-Type"] = "application/json"; request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2020-08-23"; request.HttpMethod = "POST"; request.ResourcePath = "/create-connector-profile"; using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) { JsonWriter writer = new JsonWriter(stringWriter); writer.WriteObjectStart(); var context = new JsonMarshallerContext(request, writer); if(publicRequest.IsSetClientToken()) { context.Writer.WritePropertyName("clientToken"); context.Writer.Write(publicRequest.ClientToken); } else if(!(publicRequest.IsSetClientToken())) { context.Writer.WritePropertyName("clientToken"); context.Writer.Write(Guid.NewGuid().ToString()); } if(publicRequest.IsSetConnectionMode()) { context.Writer.WritePropertyName("connectionMode"); context.Writer.Write(publicRequest.ConnectionMode); } if(publicRequest.IsSetConnectorLabel()) { context.Writer.WritePropertyName("connectorLabel"); context.Writer.Write(publicRequest.ConnectorLabel); } if(publicRequest.IsSetConnectorProfileConfig()) { context.Writer.WritePropertyName("connectorProfileConfig"); context.Writer.WriteObjectStart(); var marshaller = ConnectorProfileConfigMarshaller.Instance; marshaller.Marshall(publicRequest.ConnectorProfileConfig, context); context.Writer.WriteObjectEnd(); } if(publicRequest.IsSetConnectorProfileName()) { context.Writer.WritePropertyName("connectorProfileName"); context.Writer.Write(publicRequest.ConnectorProfileName); } if(publicRequest.IsSetConnectorType()) { context.Writer.WritePropertyName("connectorType"); context.Writer.Write(publicRequest.ConnectorType); } if(publicRequest.IsSetKmsArn()) { context.Writer.WritePropertyName("kmsArn"); context.Writer.Write(publicRequest.KmsArn); } writer.WriteObjectEnd(); string snippet = stringWriter.ToString(); request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); } return request; } private static CreateConnectorProfileRequestMarshaller _instance = new CreateConnectorProfileRequestMarshaller(); internal static CreateConnectorProfileRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static CreateConnectorProfileRequestMarshaller 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 appflow-2020-08-23.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.Appflow.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Appflow.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for CreateConnectorProfile operation /// </summary> public class CreateConnectorProfileResponseUnmarshaller : JsonResponseUnmarshaller { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { CreateConnectorProfileResponse response = new CreateConnectorProfileResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("connectorProfileArn", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.ConnectorProfileArn = unmarshaller.Unmarshall(context); continue; } } return response; } /// <summary> /// Unmarshaller error response to exception. /// </summary> /// <param name="context"></param> /// <param name="innerException"></param> /// <param name="statusCode"></param> /// <returns></returns> public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) { var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context); errorResponse.InnerException = innerException; errorResponse.StatusCode = statusCode; var responseBodyBytes = context.GetResponseBodyBytes(); using (var streamCopy = new MemoryStream(responseBodyBytes)) using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null)) { if (errorResponse.Code != null && errorResponse.Code.Equals("ConflictException")) { return ConflictExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ConnectorAuthenticationException")) { return ConnectorAuthenticationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("InternalServerException")) { return InternalServerExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ServiceQuotaExceededException")) { return ServiceQuotaExceededExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ValidationException")) { return ValidationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonAppflowException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static CreateConnectorProfileResponseUnmarshaller _instance = new CreateConnectorProfileResponseUnmarshaller(); internal static CreateConnectorProfileResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static CreateConnectorProfileResponseUnmarshaller Instance { get { return _instance; } } } }
126
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the appflow-2020-08-23.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.Appflow.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Appflow.Model.Internal.MarshallTransformations { /// <summary> /// CreateFlow Request Marshaller /// </summary> public class CreateFlowRequestMarshaller : IMarshaller<IRequest, CreateFlowRequest> , 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((CreateFlowRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(CreateFlowRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.Appflow"); request.Headers["Content-Type"] = "application/json"; request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2020-08-23"; request.HttpMethod = "POST"; request.ResourcePath = "/create-flow"; using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) { JsonWriter writer = new JsonWriter(stringWriter); writer.WriteObjectStart(); var context = new JsonMarshallerContext(request, writer); if(publicRequest.IsSetClientToken()) { context.Writer.WritePropertyName("clientToken"); context.Writer.Write(publicRequest.ClientToken); } else if(!(publicRequest.IsSetClientToken())) { context.Writer.WritePropertyName("clientToken"); context.Writer.Write(Guid.NewGuid().ToString()); } if(publicRequest.IsSetDescription()) { context.Writer.WritePropertyName("description"); context.Writer.Write(publicRequest.Description); } if(publicRequest.IsSetDestinationFlowConfigList()) { context.Writer.WritePropertyName("destinationFlowConfigList"); context.Writer.WriteArrayStart(); foreach(var publicRequestDestinationFlowConfigListListValue in publicRequest.DestinationFlowConfigList) { context.Writer.WriteObjectStart(); var marshaller = DestinationFlowConfigMarshaller.Instance; marshaller.Marshall(publicRequestDestinationFlowConfigListListValue, context); context.Writer.WriteObjectEnd(); } context.Writer.WriteArrayEnd(); } if(publicRequest.IsSetFlowName()) { context.Writer.WritePropertyName("flowName"); context.Writer.Write(publicRequest.FlowName); } if(publicRequest.IsSetKmsArn()) { context.Writer.WritePropertyName("kmsArn"); context.Writer.Write(publicRequest.KmsArn); } if(publicRequest.IsSetMetadataCatalogConfig()) { context.Writer.WritePropertyName("metadataCatalogConfig"); context.Writer.WriteObjectStart(); var marshaller = MetadataCatalogConfigMarshaller.Instance; marshaller.Marshall(publicRequest.MetadataCatalogConfig, context); context.Writer.WriteObjectEnd(); } if(publicRequest.IsSetSourceFlowConfig()) { context.Writer.WritePropertyName("sourceFlowConfig"); context.Writer.WriteObjectStart(); var marshaller = SourceFlowConfigMarshaller.Instance; marshaller.Marshall(publicRequest.SourceFlowConfig, context); context.Writer.WriteObjectEnd(); } if(publicRequest.IsSetTags()) { context.Writer.WritePropertyName("tags"); context.Writer.WriteObjectStart(); foreach (var publicRequestTagsKvp in publicRequest.Tags) { context.Writer.WritePropertyName(publicRequestTagsKvp.Key); var publicRequestTagsValue = publicRequestTagsKvp.Value; context.Writer.Write(publicRequestTagsValue); } context.Writer.WriteObjectEnd(); } if(publicRequest.IsSetTasks()) { context.Writer.WritePropertyName("tasks"); context.Writer.WriteArrayStart(); foreach(var publicRequestTasksListValue in publicRequest.Tasks) { context.Writer.WriteObjectStart(); var marshaller = TaskMarshaller.Instance; marshaller.Marshall(publicRequestTasksListValue, context); context.Writer.WriteObjectEnd(); } context.Writer.WriteArrayEnd(); } if(publicRequest.IsSetTriggerConfig()) { context.Writer.WritePropertyName("triggerConfig"); context.Writer.WriteObjectStart(); var marshaller = TriggerConfigMarshaller.Instance; marshaller.Marshall(publicRequest.TriggerConfig, context); context.Writer.WriteObjectEnd(); } writer.WriteObjectEnd(); string snippet = stringWriter.ToString(); request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); } return request; } private static CreateFlowRequestMarshaller _instance = new CreateFlowRequestMarshaller(); internal static CreateFlowRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static CreateFlowRequestMarshaller Instance { get { return _instance; } } } }
203
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the appflow-2020-08-23.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.Appflow.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Appflow.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for CreateFlow operation /// </summary> public class CreateFlowResponseUnmarshaller : JsonResponseUnmarshaller { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { CreateFlowResponse response = new CreateFlowResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("flowArn", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.FlowArn = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("flowStatus", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.FlowStatus = unmarshaller.Unmarshall(context); continue; } } return response; } /// <summary> /// Unmarshaller error response to exception. /// </summary> /// <param name="context"></param> /// <param name="innerException"></param> /// <param name="statusCode"></param> /// <returns></returns> public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) { var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context); errorResponse.InnerException = innerException; errorResponse.StatusCode = statusCode; var responseBodyBytes = context.GetResponseBodyBytes(); using (var streamCopy = new MemoryStream(responseBodyBytes)) using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null)) { if (errorResponse.Code != null && errorResponse.Code.Equals("ConflictException")) { return ConflictExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ConnectorAuthenticationException")) { return ConnectorAuthenticationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ConnectorServerException")) { return ConnectorServerExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("InternalServerException")) { return InternalServerExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ResourceNotFoundException")) { return ResourceNotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ServiceQuotaExceededException")) { return ServiceQuotaExceededExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ValidationException")) { return ValidationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonAppflowException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static CreateFlowResponseUnmarshaller _instance = new CreateFlowResponseUnmarshaller(); internal static CreateFlowResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static CreateFlowResponseUnmarshaller 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 appflow-2020-08-23.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.Appflow.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Appflow.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for CustomAuthConfig Object /// </summary> public class CustomAuthConfigUnmarshaller : IUnmarshaller<CustomAuthConfig, XmlUnmarshallerContext>, IUnmarshaller<CustomAuthConfig, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> CustomAuthConfig IUnmarshaller<CustomAuthConfig, XmlUnmarshallerContext>.Unmarshall(XmlUnmarshallerContext context) { throw new NotImplementedException(); } /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public CustomAuthConfig Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; CustomAuthConfig unmarshalledObject = new CustomAuthConfig(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("authParameters", targetDepth)) { var unmarshaller = new ListUnmarshaller<AuthParameter, AuthParameterUnmarshaller>(AuthParameterUnmarshaller.Instance); unmarshalledObject.AuthParameters = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("customAuthenticationType", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.CustomAuthenticationType = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static CustomAuthConfigUnmarshaller _instance = new CustomAuthConfigUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static CustomAuthConfigUnmarshaller 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 appflow-2020-08-23.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.Appflow.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Appflow.Model.Internal.MarshallTransformations { /// <summary> /// CustomAuthCredentials Marshaller /// </summary> public class CustomAuthCredentialsMarshaller : IRequestMarshaller<CustomAuthCredentials, JsonMarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="requestObject"></param> /// <param name="context"></param> /// <returns></returns> public void Marshall(CustomAuthCredentials requestObject, JsonMarshallerContext context) { if(requestObject.IsSetCredentialsMap()) { context.Writer.WritePropertyName("credentialsMap"); context.Writer.WriteObjectStart(); foreach (var requestObjectCredentialsMapKvp in requestObject.CredentialsMap) { context.Writer.WritePropertyName(requestObjectCredentialsMapKvp.Key); var requestObjectCredentialsMapValue = requestObjectCredentialsMapKvp.Value; context.Writer.Write(requestObjectCredentialsMapValue); } context.Writer.WriteObjectEnd(); } if(requestObject.IsSetCustomAuthenticationType()) { context.Writer.WritePropertyName("customAuthenticationType"); context.Writer.Write(requestObject.CustomAuthenticationType); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static CustomAuthCredentialsMarshaller Instance = new CustomAuthCredentialsMarshaller(); } }
76
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the appflow-2020-08-23.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.Appflow.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Appflow.Model.Internal.MarshallTransformations { /// <summary> /// CustomConnectorDestinationProperties Marshaller /// </summary> public class CustomConnectorDestinationPropertiesMarshaller : IRequestMarshaller<CustomConnectorDestinationProperties, JsonMarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="requestObject"></param> /// <param name="context"></param> /// <returns></returns> public void Marshall(CustomConnectorDestinationProperties requestObject, JsonMarshallerContext context) { if(requestObject.IsSetCustomProperties()) { context.Writer.WritePropertyName("customProperties"); context.Writer.WriteObjectStart(); foreach (var requestObjectCustomPropertiesKvp in requestObject.CustomProperties) { context.Writer.WritePropertyName(requestObjectCustomPropertiesKvp.Key); var requestObjectCustomPropertiesValue = requestObjectCustomPropertiesKvp.Value; context.Writer.Write(requestObjectCustomPropertiesValue); } context.Writer.WriteObjectEnd(); } if(requestObject.IsSetEntityName()) { context.Writer.WritePropertyName("entityName"); context.Writer.Write(requestObject.EntityName); } if(requestObject.IsSetErrorHandlingConfig()) { context.Writer.WritePropertyName("errorHandlingConfig"); context.Writer.WriteObjectStart(); var marshaller = ErrorHandlingConfigMarshaller.Instance; marshaller.Marshall(requestObject.ErrorHandlingConfig, context); context.Writer.WriteObjectEnd(); } if(requestObject.IsSetIdFieldNames()) { context.Writer.WritePropertyName("idFieldNames"); context.Writer.WriteArrayStart(); foreach(var requestObjectIdFieldNamesListValue in requestObject.IdFieldNames) { context.Writer.Write(requestObjectIdFieldNamesListValue); } context.Writer.WriteArrayEnd(); } if(requestObject.IsSetWriteOperationType()) { context.Writer.WritePropertyName("writeOperationType"); context.Writer.Write(requestObject.WriteOperationType); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static CustomConnectorDestinationPropertiesMarshaller Instance = new CustomConnectorDestinationPropertiesMarshaller(); } }
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 appflow-2020-08-23.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.Appflow.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Appflow.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for CustomConnectorDestinationProperties Object /// </summary> public class CustomConnectorDestinationPropertiesUnmarshaller : IUnmarshaller<CustomConnectorDestinationProperties, XmlUnmarshallerContext>, IUnmarshaller<CustomConnectorDestinationProperties, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> CustomConnectorDestinationProperties IUnmarshaller<CustomConnectorDestinationProperties, XmlUnmarshallerContext>.Unmarshall(XmlUnmarshallerContext context) { throw new NotImplementedException(); } /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public CustomConnectorDestinationProperties Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; CustomConnectorDestinationProperties unmarshalledObject = new CustomConnectorDestinationProperties(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("customProperties", targetDepth)) { var unmarshaller = new DictionaryUnmarshaller<string, string, StringUnmarshaller, StringUnmarshaller>(StringUnmarshaller.Instance, StringUnmarshaller.Instance); unmarshalledObject.CustomProperties = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("entityName", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.EntityName = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("errorHandlingConfig", targetDepth)) { var unmarshaller = ErrorHandlingConfigUnmarshaller.Instance; unmarshalledObject.ErrorHandlingConfig = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("idFieldNames", targetDepth)) { var unmarshaller = new ListUnmarshaller<string, StringUnmarshaller>(StringUnmarshaller.Instance); unmarshalledObject.IdFieldNames = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("writeOperationType", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.WriteOperationType = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static CustomConnectorDestinationPropertiesUnmarshaller _instance = new CustomConnectorDestinationPropertiesUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static CustomConnectorDestinationPropertiesUnmarshaller 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 appflow-2020-08-23.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.Appflow.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Appflow.Model.Internal.MarshallTransformations { /// <summary> /// CustomConnectorProfileCredentials Marshaller /// </summary> public class CustomConnectorProfileCredentialsMarshaller : IRequestMarshaller<CustomConnectorProfileCredentials, JsonMarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="requestObject"></param> /// <param name="context"></param> /// <returns></returns> public void Marshall(CustomConnectorProfileCredentials requestObject, JsonMarshallerContext context) { if(requestObject.IsSetApiKey()) { context.Writer.WritePropertyName("apiKey"); context.Writer.WriteObjectStart(); var marshaller = ApiKeyCredentialsMarshaller.Instance; marshaller.Marshall(requestObject.ApiKey, context); context.Writer.WriteObjectEnd(); } if(requestObject.IsSetAuthenticationType()) { context.Writer.WritePropertyName("authenticationType"); context.Writer.Write(requestObject.AuthenticationType); } if(requestObject.IsSetBasic()) { context.Writer.WritePropertyName("basic"); context.Writer.WriteObjectStart(); var marshaller = BasicAuthCredentialsMarshaller.Instance; marshaller.Marshall(requestObject.Basic, context); context.Writer.WriteObjectEnd(); } if(requestObject.IsSetCustom()) { context.Writer.WritePropertyName("custom"); context.Writer.WriteObjectStart(); var marshaller = CustomAuthCredentialsMarshaller.Instance; marshaller.Marshall(requestObject.Custom, context); context.Writer.WriteObjectEnd(); } if(requestObject.IsSetOauth2()) { context.Writer.WritePropertyName("oauth2"); context.Writer.WriteObjectStart(); var marshaller = OAuth2CredentialsMarshaller.Instance; marshaller.Marshall(requestObject.Oauth2, context); context.Writer.WriteObjectEnd(); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static CustomConnectorProfileCredentialsMarshaller Instance = new CustomConnectorProfileCredentialsMarshaller(); } }
106
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the appflow-2020-08-23.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.Appflow.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Appflow.Model.Internal.MarshallTransformations { /// <summary> /// CustomConnectorProfileProperties Marshaller /// </summary> public class CustomConnectorProfilePropertiesMarshaller : IRequestMarshaller<CustomConnectorProfileProperties, JsonMarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="requestObject"></param> /// <param name="context"></param> /// <returns></returns> public void Marshall(CustomConnectorProfileProperties requestObject, JsonMarshallerContext context) { if(requestObject.IsSetOAuth2Properties()) { context.Writer.WritePropertyName("oAuth2Properties"); context.Writer.WriteObjectStart(); var marshaller = OAuth2PropertiesMarshaller.Instance; marshaller.Marshall(requestObject.OAuth2Properties, context); context.Writer.WriteObjectEnd(); } if(requestObject.IsSetProfileProperties()) { context.Writer.WritePropertyName("profileProperties"); context.Writer.WriteObjectStart(); foreach (var requestObjectProfilePropertiesKvp in requestObject.ProfileProperties) { context.Writer.WritePropertyName(requestObjectProfilePropertiesKvp.Key); var requestObjectProfilePropertiesValue = requestObjectProfilePropertiesKvp.Value; context.Writer.Write(requestObjectProfilePropertiesValue); } context.Writer.WriteObjectEnd(); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static CustomConnectorProfilePropertiesMarshaller Instance = new CustomConnectorProfilePropertiesMarshaller(); } }
81
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the appflow-2020-08-23.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.Appflow.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Appflow.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for CustomConnectorProfileProperties Object /// </summary> public class CustomConnectorProfilePropertiesUnmarshaller : IUnmarshaller<CustomConnectorProfileProperties, XmlUnmarshallerContext>, IUnmarshaller<CustomConnectorProfileProperties, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> CustomConnectorProfileProperties IUnmarshaller<CustomConnectorProfileProperties, XmlUnmarshallerContext>.Unmarshall(XmlUnmarshallerContext context) { throw new NotImplementedException(); } /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public CustomConnectorProfileProperties Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; CustomConnectorProfileProperties unmarshalledObject = new CustomConnectorProfileProperties(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("oAuth2Properties", targetDepth)) { var unmarshaller = OAuth2PropertiesUnmarshaller.Instance; unmarshalledObject.OAuth2Properties = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("profileProperties", targetDepth)) { var unmarshaller = new DictionaryUnmarshaller<string, string, StringUnmarshaller, StringUnmarshaller>(StringUnmarshaller.Instance, StringUnmarshaller.Instance); unmarshalledObject.ProfileProperties = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static CustomConnectorProfilePropertiesUnmarshaller _instance = new CustomConnectorProfilePropertiesUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static CustomConnectorProfilePropertiesUnmarshaller 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 appflow-2020-08-23.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.Appflow.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Appflow.Model.Internal.MarshallTransformations { /// <summary> /// CustomConnectorSourceProperties Marshaller /// </summary> public class CustomConnectorSourcePropertiesMarshaller : IRequestMarshaller<CustomConnectorSourceProperties, JsonMarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="requestObject"></param> /// <param name="context"></param> /// <returns></returns> public void Marshall(CustomConnectorSourceProperties requestObject, JsonMarshallerContext context) { if(requestObject.IsSetCustomProperties()) { context.Writer.WritePropertyName("customProperties"); context.Writer.WriteObjectStart(); foreach (var requestObjectCustomPropertiesKvp in requestObject.CustomProperties) { context.Writer.WritePropertyName(requestObjectCustomPropertiesKvp.Key); var requestObjectCustomPropertiesValue = requestObjectCustomPropertiesKvp.Value; context.Writer.Write(requestObjectCustomPropertiesValue); } context.Writer.WriteObjectEnd(); } if(requestObject.IsSetDataTransferApi()) { context.Writer.WritePropertyName("dataTransferApi"); context.Writer.WriteObjectStart(); var marshaller = DataTransferApiMarshaller.Instance; marshaller.Marshall(requestObject.DataTransferApi, context); context.Writer.WriteObjectEnd(); } if(requestObject.IsSetEntityName()) { context.Writer.WritePropertyName("entityName"); context.Writer.Write(requestObject.EntityName); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static CustomConnectorSourcePropertiesMarshaller Instance = new CustomConnectorSourcePropertiesMarshaller(); } }
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 appflow-2020-08-23.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.Appflow.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Appflow.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for CustomConnectorSourceProperties Object /// </summary> public class CustomConnectorSourcePropertiesUnmarshaller : IUnmarshaller<CustomConnectorSourceProperties, XmlUnmarshallerContext>, IUnmarshaller<CustomConnectorSourceProperties, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> CustomConnectorSourceProperties IUnmarshaller<CustomConnectorSourceProperties, XmlUnmarshallerContext>.Unmarshall(XmlUnmarshallerContext context) { throw new NotImplementedException(); } /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public CustomConnectorSourceProperties Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; CustomConnectorSourceProperties unmarshalledObject = new CustomConnectorSourceProperties(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("customProperties", targetDepth)) { var unmarshaller = new DictionaryUnmarshaller<string, string, StringUnmarshaller, StringUnmarshaller>(StringUnmarshaller.Instance, StringUnmarshaller.Instance); unmarshalledObject.CustomProperties = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("dataTransferApi", targetDepth)) { var unmarshaller = DataTransferApiUnmarshaller.Instance; unmarshalledObject.DataTransferApi = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("entityName", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.EntityName = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static CustomConnectorSourcePropertiesUnmarshaller _instance = new CustomConnectorSourcePropertiesUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static CustomConnectorSourcePropertiesUnmarshaller 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 appflow-2020-08-23.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.Appflow.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Appflow.Model.Internal.MarshallTransformations { /// <summary> /// CustomerProfilesDestinationProperties Marshaller /// </summary> public class CustomerProfilesDestinationPropertiesMarshaller : IRequestMarshaller<CustomerProfilesDestinationProperties, JsonMarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="requestObject"></param> /// <param name="context"></param> /// <returns></returns> public void Marshall(CustomerProfilesDestinationProperties requestObject, JsonMarshallerContext context) { if(requestObject.IsSetDomainName()) { context.Writer.WritePropertyName("domainName"); context.Writer.Write(requestObject.DomainName); } if(requestObject.IsSetObjectTypeName()) { context.Writer.WritePropertyName("objectTypeName"); context.Writer.Write(requestObject.ObjectTypeName); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static CustomerProfilesDestinationPropertiesMarshaller Instance = new CustomerProfilesDestinationPropertiesMarshaller(); } }
68
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the appflow-2020-08-23.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.Appflow.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Appflow.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for CustomerProfilesDestinationProperties Object /// </summary> public class CustomerProfilesDestinationPropertiesUnmarshaller : IUnmarshaller<CustomerProfilesDestinationProperties, XmlUnmarshallerContext>, IUnmarshaller<CustomerProfilesDestinationProperties, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> CustomerProfilesDestinationProperties IUnmarshaller<CustomerProfilesDestinationProperties, XmlUnmarshallerContext>.Unmarshall(XmlUnmarshallerContext context) { throw new NotImplementedException(); } /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public CustomerProfilesDestinationProperties Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; CustomerProfilesDestinationProperties unmarshalledObject = new CustomerProfilesDestinationProperties(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("domainName", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.DomainName = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("objectTypeName", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.ObjectTypeName = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static CustomerProfilesDestinationPropertiesUnmarshaller _instance = new CustomerProfilesDestinationPropertiesUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static CustomerProfilesDestinationPropertiesUnmarshaller 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 appflow-2020-08-23.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.Appflow.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Appflow.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for CustomerProfilesMetadata Object /// </summary> public class CustomerProfilesMetadataUnmarshaller : IUnmarshaller<CustomerProfilesMetadata, XmlUnmarshallerContext>, IUnmarshaller<CustomerProfilesMetadata, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> CustomerProfilesMetadata IUnmarshaller<CustomerProfilesMetadata, XmlUnmarshallerContext>.Unmarshall(XmlUnmarshallerContext context) { throw new NotImplementedException(); } /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public CustomerProfilesMetadata Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; CustomerProfilesMetadata unmarshalledObject = new CustomerProfilesMetadata(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { } return unmarshalledObject; } private static CustomerProfilesMetadataUnmarshaller _instance = new CustomerProfilesMetadataUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static CustomerProfilesMetadataUnmarshaller Instance { get { return _instance; } } } }
86
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the appflow-2020-08-23.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.Appflow.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Appflow.Model.Internal.MarshallTransformations { /// <summary> /// DatadogConnectorProfileCredentials Marshaller /// </summary> public class DatadogConnectorProfileCredentialsMarshaller : IRequestMarshaller<DatadogConnectorProfileCredentials, JsonMarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="requestObject"></param> /// <param name="context"></param> /// <returns></returns> public void Marshall(DatadogConnectorProfileCredentials requestObject, JsonMarshallerContext context) { if(requestObject.IsSetApiKey()) { context.Writer.WritePropertyName("apiKey"); context.Writer.Write(requestObject.ApiKey); } if(requestObject.IsSetApplicationKey()) { context.Writer.WritePropertyName("applicationKey"); context.Writer.Write(requestObject.ApplicationKey); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static DatadogConnectorProfileCredentialsMarshaller Instance = new DatadogConnectorProfileCredentialsMarshaller(); } }
68
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the appflow-2020-08-23.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.Appflow.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Appflow.Model.Internal.MarshallTransformations { /// <summary> /// DatadogConnectorProfileProperties Marshaller /// </summary> public class DatadogConnectorProfilePropertiesMarshaller : IRequestMarshaller<DatadogConnectorProfileProperties, JsonMarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="requestObject"></param> /// <param name="context"></param> /// <returns></returns> public void Marshall(DatadogConnectorProfileProperties requestObject, JsonMarshallerContext context) { if(requestObject.IsSetInstanceUrl()) { context.Writer.WritePropertyName("instanceUrl"); context.Writer.Write(requestObject.InstanceUrl); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static DatadogConnectorProfilePropertiesMarshaller Instance = new DatadogConnectorProfilePropertiesMarshaller(); } }
62
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the appflow-2020-08-23.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.Appflow.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Appflow.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for DatadogConnectorProfileProperties Object /// </summary> public class DatadogConnectorProfilePropertiesUnmarshaller : IUnmarshaller<DatadogConnectorProfileProperties, XmlUnmarshallerContext>, IUnmarshaller<DatadogConnectorProfileProperties, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> DatadogConnectorProfileProperties IUnmarshaller<DatadogConnectorProfileProperties, XmlUnmarshallerContext>.Unmarshall(XmlUnmarshallerContext context) { throw new NotImplementedException(); } /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public DatadogConnectorProfileProperties Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; DatadogConnectorProfileProperties unmarshalledObject = new DatadogConnectorProfileProperties(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("instanceUrl", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.InstanceUrl = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static DatadogConnectorProfilePropertiesUnmarshaller _instance = new DatadogConnectorProfilePropertiesUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static DatadogConnectorProfilePropertiesUnmarshaller Instance { get { return _instance; } } } }
92
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the appflow-2020-08-23.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.Appflow.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Appflow.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for DatadogMetadata Object /// </summary> public class DatadogMetadataUnmarshaller : IUnmarshaller<DatadogMetadata, XmlUnmarshallerContext>, IUnmarshaller<DatadogMetadata, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> DatadogMetadata IUnmarshaller<DatadogMetadata, XmlUnmarshallerContext>.Unmarshall(XmlUnmarshallerContext context) { throw new NotImplementedException(); } /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public DatadogMetadata Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; DatadogMetadata unmarshalledObject = new DatadogMetadata(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { } return unmarshalledObject; } private static DatadogMetadataUnmarshaller _instance = new DatadogMetadataUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static DatadogMetadataUnmarshaller Instance { get { return _instance; } } } }
86
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the appflow-2020-08-23.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.Appflow.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Appflow.Model.Internal.MarshallTransformations { /// <summary> /// DatadogSourceProperties Marshaller /// </summary> public class DatadogSourcePropertiesMarshaller : IRequestMarshaller<DatadogSourceProperties, JsonMarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="requestObject"></param> /// <param name="context"></param> /// <returns></returns> public void Marshall(DatadogSourceProperties requestObject, JsonMarshallerContext context) { if(requestObject.IsSetObject()) { context.Writer.WritePropertyName("object"); context.Writer.Write(requestObject.Object); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static DatadogSourcePropertiesMarshaller Instance = new DatadogSourcePropertiesMarshaller(); } }
62
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the appflow-2020-08-23.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.Appflow.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Appflow.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for DatadogSourceProperties Object /// </summary> public class DatadogSourcePropertiesUnmarshaller : IUnmarshaller<DatadogSourceProperties, XmlUnmarshallerContext>, IUnmarshaller<DatadogSourceProperties, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> DatadogSourceProperties IUnmarshaller<DatadogSourceProperties, XmlUnmarshallerContext>.Unmarshall(XmlUnmarshallerContext context) { throw new NotImplementedException(); } /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public DatadogSourceProperties Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; DatadogSourceProperties unmarshalledObject = new DatadogSourceProperties(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("object", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Object = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static DatadogSourcePropertiesUnmarshaller _instance = new DatadogSourcePropertiesUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static DatadogSourcePropertiesUnmarshaller Instance { get { return _instance; } } } }
92
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the appflow-2020-08-23.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.Appflow.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Appflow.Model.Internal.MarshallTransformations { /// <summary> /// DataTransferApi Marshaller /// </summary> public class DataTransferApiMarshaller : IRequestMarshaller<DataTransferApi, JsonMarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="requestObject"></param> /// <param name="context"></param> /// <returns></returns> public void Marshall(DataTransferApi requestObject, JsonMarshallerContext context) { if(requestObject.IsSetName()) { context.Writer.WritePropertyName("Name"); context.Writer.Write(requestObject.Name); } if(requestObject.IsSetType()) { context.Writer.WritePropertyName("Type"); context.Writer.Write(requestObject.Type); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static DataTransferApiMarshaller Instance = new DataTransferApiMarshaller(); } }
68
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the appflow-2020-08-23.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.Appflow.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Appflow.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for DataTransferApi Object /// </summary> public class DataTransferApiUnmarshaller : IUnmarshaller<DataTransferApi, XmlUnmarshallerContext>, IUnmarshaller<DataTransferApi, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> DataTransferApi IUnmarshaller<DataTransferApi, XmlUnmarshallerContext>.Unmarshall(XmlUnmarshallerContext context) { throw new NotImplementedException(); } /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public DataTransferApi Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; DataTransferApi unmarshalledObject = new DataTransferApi(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("Name", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Name = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Type", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Type = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static DataTransferApiUnmarshaller _instance = new DataTransferApiUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static DataTransferApiUnmarshaller 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 appflow-2020-08-23.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.Appflow.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Appflow.Model.Internal.MarshallTransformations { /// <summary> /// DeleteConnectorProfile Request Marshaller /// </summary> public class DeleteConnectorProfileRequestMarshaller : IMarshaller<IRequest, DeleteConnectorProfileRequest> , 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((DeleteConnectorProfileRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(DeleteConnectorProfileRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.Appflow"); request.Headers["Content-Type"] = "application/json"; request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2020-08-23"; request.HttpMethod = "POST"; request.ResourcePath = "/delete-connector-profile"; using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) { JsonWriter writer = new JsonWriter(stringWriter); writer.WriteObjectStart(); var context = new JsonMarshallerContext(request, writer); if(publicRequest.IsSetConnectorProfileName()) { context.Writer.WritePropertyName("connectorProfileName"); context.Writer.Write(publicRequest.ConnectorProfileName); } if(publicRequest.IsSetForceDelete()) { context.Writer.WritePropertyName("forceDelete"); context.Writer.Write(publicRequest.ForceDelete); } writer.WriteObjectEnd(); string snippet = stringWriter.ToString(); request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); } return request; } private static DeleteConnectorProfileRequestMarshaller _instance = new DeleteConnectorProfileRequestMarshaller(); internal static DeleteConnectorProfileRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static DeleteConnectorProfileRequestMarshaller 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 appflow-2020-08-23.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.Appflow.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Appflow.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for DeleteConnectorProfile operation /// </summary> public class DeleteConnectorProfileResponseUnmarshaller : JsonResponseUnmarshaller { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { DeleteConnectorProfileResponse response = new DeleteConnectorProfileResponse(); return response; } /// <summary> /// Unmarshaller error response to exception. /// </summary> /// <param name="context"></param> /// <param name="innerException"></param> /// <param name="statusCode"></param> /// <returns></returns> public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) { var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context); errorResponse.InnerException = innerException; errorResponse.StatusCode = statusCode; var responseBodyBytes = context.GetResponseBodyBytes(); using (var streamCopy = new MemoryStream(responseBodyBytes)) using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null)) { if (errorResponse.Code != null && errorResponse.Code.Equals("ConflictException")) { return ConflictExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("InternalServerException")) { return InternalServerExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ResourceNotFoundException")) { return ResourceNotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonAppflowException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static DeleteConnectorProfileResponseUnmarshaller _instance = new DeleteConnectorProfileResponseUnmarshaller(); internal static DeleteConnectorProfileResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static DeleteConnectorProfileResponseUnmarshaller 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 appflow-2020-08-23.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.Appflow.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Appflow.Model.Internal.MarshallTransformations { /// <summary> /// DeleteFlow Request Marshaller /// </summary> public class DeleteFlowRequestMarshaller : IMarshaller<IRequest, DeleteFlowRequest> , 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((DeleteFlowRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(DeleteFlowRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.Appflow"); request.Headers["Content-Type"] = "application/json"; request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2020-08-23"; request.HttpMethod = "POST"; request.ResourcePath = "/delete-flow"; using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) { JsonWriter writer = new JsonWriter(stringWriter); writer.WriteObjectStart(); var context = new JsonMarshallerContext(request, writer); if(publicRequest.IsSetFlowName()) { context.Writer.WritePropertyName("flowName"); context.Writer.Write(publicRequest.FlowName); } if(publicRequest.IsSetForceDelete()) { context.Writer.WritePropertyName("forceDelete"); context.Writer.Write(publicRequest.ForceDelete); } writer.WriteObjectEnd(); string snippet = stringWriter.ToString(); request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); } return request; } private static DeleteFlowRequestMarshaller _instance = new DeleteFlowRequestMarshaller(); internal static DeleteFlowRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static DeleteFlowRequestMarshaller 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 appflow-2020-08-23.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.Appflow.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Appflow.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for DeleteFlow operation /// </summary> public class DeleteFlowResponseUnmarshaller : JsonResponseUnmarshaller { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { DeleteFlowResponse response = new DeleteFlowResponse(); return response; } /// <summary> /// Unmarshaller error response to exception. /// </summary> /// <param name="context"></param> /// <param name="innerException"></param> /// <param name="statusCode"></param> /// <returns></returns> public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) { var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context); errorResponse.InnerException = innerException; errorResponse.StatusCode = statusCode; var responseBodyBytes = context.GetResponseBodyBytes(); using (var streamCopy = new MemoryStream(responseBodyBytes)) using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null)) { if (errorResponse.Code != null && errorResponse.Code.Equals("ConflictException")) { return ConflictExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("InternalServerException")) { return InternalServerExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ResourceNotFoundException")) { return ResourceNotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonAppflowException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static DeleteFlowResponseUnmarshaller _instance = new DeleteFlowResponseUnmarshaller(); internal static DeleteFlowResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static DeleteFlowResponseUnmarshaller 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 appflow-2020-08-23.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.Appflow.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Appflow.Model.Internal.MarshallTransformations { /// <summary> /// DescribeConnectorEntity Request Marshaller /// </summary> public class DescribeConnectorEntityRequestMarshaller : IMarshaller<IRequest, DescribeConnectorEntityRequest> , 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((DescribeConnectorEntityRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(DescribeConnectorEntityRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.Appflow"); request.Headers["Content-Type"] = "application/json"; request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2020-08-23"; request.HttpMethod = "POST"; request.ResourcePath = "/describe-connector-entity"; using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) { JsonWriter writer = new JsonWriter(stringWriter); writer.WriteObjectStart(); var context = new JsonMarshallerContext(request, writer); if(publicRequest.IsSetApiVersion()) { context.Writer.WritePropertyName("apiVersion"); context.Writer.Write(publicRequest.ApiVersion); } if(publicRequest.IsSetConnectorEntityName()) { context.Writer.WritePropertyName("connectorEntityName"); context.Writer.Write(publicRequest.ConnectorEntityName); } if(publicRequest.IsSetConnectorProfileName()) { context.Writer.WritePropertyName("connectorProfileName"); context.Writer.Write(publicRequest.ConnectorProfileName); } if(publicRequest.IsSetConnectorType()) { context.Writer.WritePropertyName("connectorType"); context.Writer.Write(publicRequest.ConnectorType); } writer.WriteObjectEnd(); string snippet = stringWriter.ToString(); request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); } return request; } private static DescribeConnectorEntityRequestMarshaller _instance = new DescribeConnectorEntityRequestMarshaller(); internal static DescribeConnectorEntityRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static DescribeConnectorEntityRequestMarshaller 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 appflow-2020-08-23.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.Appflow.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Appflow.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for DescribeConnectorEntity operation /// </summary> public class DescribeConnectorEntityResponseUnmarshaller : JsonResponseUnmarshaller { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { DescribeConnectorEntityResponse response = new DescribeConnectorEntityResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("connectorEntityFields", targetDepth)) { var unmarshaller = new ListUnmarshaller<ConnectorEntityField, ConnectorEntityFieldUnmarshaller>(ConnectorEntityFieldUnmarshaller.Instance); response.ConnectorEntityFields = unmarshaller.Unmarshall(context); continue; } } return response; } /// <summary> /// Unmarshaller error response to exception. /// </summary> /// <param name="context"></param> /// <param name="innerException"></param> /// <param name="statusCode"></param> /// <returns></returns> public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) { var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context); errorResponse.InnerException = innerException; errorResponse.StatusCode = statusCode; var responseBodyBytes = context.GetResponseBodyBytes(); using (var streamCopy = new MemoryStream(responseBodyBytes)) using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null)) { if (errorResponse.Code != null && errorResponse.Code.Equals("ConnectorAuthenticationException")) { return ConnectorAuthenticationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ConnectorServerException")) { return ConnectorServerExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("InternalServerException")) { return InternalServerExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ResourceNotFoundException")) { return ResourceNotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ValidationException")) { return ValidationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonAppflowException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static DescribeConnectorEntityResponseUnmarshaller _instance = new DescribeConnectorEntityResponseUnmarshaller(); internal static DescribeConnectorEntityResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static DescribeConnectorEntityResponseUnmarshaller Instance { get { return _instance; } } } }
126
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the appflow-2020-08-23.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.Appflow.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Appflow.Model.Internal.MarshallTransformations { /// <summary> /// DescribeConnectorProfiles Request Marshaller /// </summary> public class DescribeConnectorProfilesRequestMarshaller : IMarshaller<IRequest, DescribeConnectorProfilesRequest> , 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((DescribeConnectorProfilesRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(DescribeConnectorProfilesRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.Appflow"); request.Headers["Content-Type"] = "application/json"; request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2020-08-23"; request.HttpMethod = "POST"; request.ResourcePath = "/describe-connector-profiles"; using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) { JsonWriter writer = new JsonWriter(stringWriter); writer.WriteObjectStart(); var context = new JsonMarshallerContext(request, writer); if(publicRequest.IsSetConnectorLabel()) { context.Writer.WritePropertyName("connectorLabel"); context.Writer.Write(publicRequest.ConnectorLabel); } if(publicRequest.IsSetConnectorProfileNames()) { context.Writer.WritePropertyName("connectorProfileNames"); context.Writer.WriteArrayStart(); foreach(var publicRequestConnectorProfileNamesListValue in publicRequest.ConnectorProfileNames) { context.Writer.Write(publicRequestConnectorProfileNamesListValue); } context.Writer.WriteArrayEnd(); } if(publicRequest.IsSetConnectorType()) { context.Writer.WritePropertyName("connectorType"); context.Writer.Write(publicRequest.ConnectorType); } if(publicRequest.IsSetMaxResults()) { context.Writer.WritePropertyName("maxResults"); context.Writer.Write(publicRequest.MaxResults); } if(publicRequest.IsSetNextToken()) { context.Writer.WritePropertyName("nextToken"); context.Writer.Write(publicRequest.NextToken); } writer.WriteObjectEnd(); string snippet = stringWriter.ToString(); request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); } return request; } private static DescribeConnectorProfilesRequestMarshaller _instance = new DescribeConnectorProfilesRequestMarshaller(); internal static DescribeConnectorProfilesRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static DescribeConnectorProfilesRequestMarshaller Instance { get { return _instance; } } } }
130
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the appflow-2020-08-23.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.Appflow.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Appflow.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for DescribeConnectorProfiles operation /// </summary> public class DescribeConnectorProfilesResponseUnmarshaller : JsonResponseUnmarshaller { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { DescribeConnectorProfilesResponse response = new DescribeConnectorProfilesResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("connectorProfileDetails", targetDepth)) { var unmarshaller = new ListUnmarshaller<ConnectorProfile, ConnectorProfileUnmarshaller>(ConnectorProfileUnmarshaller.Instance); response.ConnectorProfileDetails = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("nextToken", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.NextToken = unmarshaller.Unmarshall(context); continue; } } return response; } /// <summary> /// Unmarshaller error response to exception. /// </summary> /// <param name="context"></param> /// <param name="innerException"></param> /// <param name="statusCode"></param> /// <returns></returns> public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) { var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context); errorResponse.InnerException = innerException; errorResponse.StatusCode = statusCode; var responseBodyBytes = context.GetResponseBodyBytes(); using (var streamCopy = new MemoryStream(responseBodyBytes)) using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null)) { if (errorResponse.Code != null && errorResponse.Code.Equals("InternalServerException")) { return InternalServerExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ValidationException")) { return ValidationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonAppflowException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static DescribeConnectorProfilesResponseUnmarshaller _instance = new DescribeConnectorProfilesResponseUnmarshaller(); internal static DescribeConnectorProfilesResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static DescribeConnectorProfilesResponseUnmarshaller Instance { get { return _instance; } } } }
120
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the appflow-2020-08-23.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.Appflow.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Appflow.Model.Internal.MarshallTransformations { /// <summary> /// DescribeConnector Request Marshaller /// </summary> public class DescribeConnectorRequestMarshaller : IMarshaller<IRequest, DescribeConnectorRequest> , 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((DescribeConnectorRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(DescribeConnectorRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.Appflow"); request.Headers["Content-Type"] = "application/json"; request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2020-08-23"; request.HttpMethod = "POST"; request.ResourcePath = "/describe-connector"; using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) { JsonWriter writer = new JsonWriter(stringWriter); writer.WriteObjectStart(); var context = new JsonMarshallerContext(request, writer); if(publicRequest.IsSetConnectorLabel()) { context.Writer.WritePropertyName("connectorLabel"); context.Writer.Write(publicRequest.ConnectorLabel); } if(publicRequest.IsSetConnectorType()) { context.Writer.WritePropertyName("connectorType"); context.Writer.Write(publicRequest.ConnectorType); } writer.WriteObjectEnd(); string snippet = stringWriter.ToString(); request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); } return request; } private static DescribeConnectorRequestMarshaller _instance = new DescribeConnectorRequestMarshaller(); internal static DescribeConnectorRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static DescribeConnectorRequestMarshaller 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 appflow-2020-08-23.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.Appflow.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Appflow.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for DescribeConnector operation /// </summary> public class DescribeConnectorResponseUnmarshaller : JsonResponseUnmarshaller { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { DescribeConnectorResponse response = new DescribeConnectorResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("connectorConfiguration", targetDepth)) { var unmarshaller = ConnectorConfigurationUnmarshaller.Instance; response.ConnectorConfiguration = unmarshaller.Unmarshall(context); continue; } } return response; } /// <summary> /// Unmarshaller error response to exception. /// </summary> /// <param name="context"></param> /// <param name="innerException"></param> /// <param name="statusCode"></param> /// <returns></returns> public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) { var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context); errorResponse.InnerException = innerException; errorResponse.StatusCode = statusCode; var responseBodyBytes = context.GetResponseBodyBytes(); using (var streamCopy = new MemoryStream(responseBodyBytes)) using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null)) { if (errorResponse.Code != null && errorResponse.Code.Equals("InternalServerException")) { return InternalServerExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ResourceNotFoundException")) { return ResourceNotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ValidationException")) { return ValidationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonAppflowException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static DescribeConnectorResponseUnmarshaller _instance = new DescribeConnectorResponseUnmarshaller(); internal static DescribeConnectorResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static DescribeConnectorResponseUnmarshaller Instance { get { return _instance; } } } }
118
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the appflow-2020-08-23.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.Appflow.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Appflow.Model.Internal.MarshallTransformations { /// <summary> /// DescribeConnectors Request Marshaller /// </summary> public class DescribeConnectorsRequestMarshaller : IMarshaller<IRequest, DescribeConnectorsRequest> , 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((DescribeConnectorsRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(DescribeConnectorsRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.Appflow"); request.Headers["Content-Type"] = "application/json"; request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2020-08-23"; request.HttpMethod = "POST"; request.ResourcePath = "/describe-connectors"; using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) { JsonWriter writer = new JsonWriter(stringWriter); writer.WriteObjectStart(); var context = new JsonMarshallerContext(request, writer); if(publicRequest.IsSetConnectorTypes()) { context.Writer.WritePropertyName("connectorTypes"); context.Writer.WriteArrayStart(); foreach(var publicRequestConnectorTypesListValue in publicRequest.ConnectorTypes) { context.Writer.Write(publicRequestConnectorTypesListValue); } context.Writer.WriteArrayEnd(); } if(publicRequest.IsSetMaxResults()) { context.Writer.WritePropertyName("maxResults"); context.Writer.Write(publicRequest.MaxResults); } if(publicRequest.IsSetNextToken()) { context.Writer.WritePropertyName("nextToken"); context.Writer.Write(publicRequest.NextToken); } writer.WriteObjectEnd(); string snippet = stringWriter.ToString(); request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); } return request; } private static DescribeConnectorsRequestMarshaller _instance = new DescribeConnectorsRequestMarshaller(); internal static DescribeConnectorsRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static DescribeConnectorsRequestMarshaller Instance { get { return _instance; } } } }
118
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the appflow-2020-08-23.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.Appflow.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Appflow.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for DescribeConnectors operation /// </summary> public class DescribeConnectorsResponseUnmarshaller : JsonResponseUnmarshaller { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { DescribeConnectorsResponse response = new DescribeConnectorsResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("connectorConfigurations", targetDepth)) { var unmarshaller = new DictionaryUnmarshaller<string, ConnectorConfiguration, StringUnmarshaller, ConnectorConfigurationUnmarshaller>(StringUnmarshaller.Instance, ConnectorConfigurationUnmarshaller.Instance); response.ConnectorConfigurations = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("connectors", targetDepth)) { var unmarshaller = new ListUnmarshaller<ConnectorDetail, ConnectorDetailUnmarshaller>(ConnectorDetailUnmarshaller.Instance); response.Connectors = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("nextToken", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.NextToken = unmarshaller.Unmarshall(context); continue; } } return response; } /// <summary> /// Unmarshaller error response to exception. /// </summary> /// <param name="context"></param> /// <param name="innerException"></param> /// <param name="statusCode"></param> /// <returns></returns> public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) { var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context); errorResponse.InnerException = innerException; errorResponse.StatusCode = statusCode; var responseBodyBytes = context.GetResponseBodyBytes(); using (var streamCopy = new MemoryStream(responseBodyBytes)) using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null)) { if (errorResponse.Code != null && errorResponse.Code.Equals("InternalServerException")) { return InternalServerExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ValidationException")) { return ValidationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonAppflowException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static DescribeConnectorsResponseUnmarshaller _instance = new DescribeConnectorsResponseUnmarshaller(); internal static DescribeConnectorsResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static DescribeConnectorsResponseUnmarshaller Instance { get { return _instance; } } } }
126
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the appflow-2020-08-23.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.Appflow.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Appflow.Model.Internal.MarshallTransformations { /// <summary> /// DescribeFlowExecutionRecords Request Marshaller /// </summary> public class DescribeFlowExecutionRecordsRequestMarshaller : IMarshaller<IRequest, DescribeFlowExecutionRecordsRequest> , 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((DescribeFlowExecutionRecordsRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(DescribeFlowExecutionRecordsRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.Appflow"); request.Headers["Content-Type"] = "application/json"; request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2020-08-23"; request.HttpMethod = "POST"; request.ResourcePath = "/describe-flow-execution-records"; using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) { JsonWriter writer = new JsonWriter(stringWriter); writer.WriteObjectStart(); var context = new JsonMarshallerContext(request, writer); if(publicRequest.IsSetFlowName()) { context.Writer.WritePropertyName("flowName"); context.Writer.Write(publicRequest.FlowName); } if(publicRequest.IsSetMaxResults()) { context.Writer.WritePropertyName("maxResults"); context.Writer.Write(publicRequest.MaxResults); } if(publicRequest.IsSetNextToken()) { context.Writer.WritePropertyName("nextToken"); context.Writer.Write(publicRequest.NextToken); } writer.WriteObjectEnd(); string snippet = stringWriter.ToString(); request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); } return request; } private static DescribeFlowExecutionRecordsRequestMarshaller _instance = new DescribeFlowExecutionRecordsRequestMarshaller(); internal static DescribeFlowExecutionRecordsRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static DescribeFlowExecutionRecordsRequestMarshaller Instance { get { return _instance; } } } }
113
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the appflow-2020-08-23.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.Appflow.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Appflow.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for DescribeFlowExecutionRecords operation /// </summary> public class DescribeFlowExecutionRecordsResponseUnmarshaller : JsonResponseUnmarshaller { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { DescribeFlowExecutionRecordsResponse response = new DescribeFlowExecutionRecordsResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("flowExecutions", targetDepth)) { var unmarshaller = new ListUnmarshaller<ExecutionRecord, ExecutionRecordUnmarshaller>(ExecutionRecordUnmarshaller.Instance); response.FlowExecutions = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("nextToken", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.NextToken = unmarshaller.Unmarshall(context); continue; } } return response; } /// <summary> /// Unmarshaller error response to exception. /// </summary> /// <param name="context"></param> /// <param name="innerException"></param> /// <param name="statusCode"></param> /// <returns></returns> public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) { var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context); errorResponse.InnerException = innerException; errorResponse.StatusCode = statusCode; var responseBodyBytes = context.GetResponseBodyBytes(); using (var streamCopy = new MemoryStream(responseBodyBytes)) using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null)) { if (errorResponse.Code != null && errorResponse.Code.Equals("InternalServerException")) { return InternalServerExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ResourceNotFoundException")) { return ResourceNotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ValidationException")) { return ValidationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonAppflowException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static DescribeFlowExecutionRecordsResponseUnmarshaller _instance = new DescribeFlowExecutionRecordsResponseUnmarshaller(); internal static DescribeFlowExecutionRecordsResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static DescribeFlowExecutionRecordsResponseUnmarshaller Instance { get { return _instance; } } } }
124
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the appflow-2020-08-23.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.Appflow.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Appflow.Model.Internal.MarshallTransformations { /// <summary> /// DescribeFlow Request Marshaller /// </summary> public class DescribeFlowRequestMarshaller : IMarshaller<IRequest, DescribeFlowRequest> , 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((DescribeFlowRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(DescribeFlowRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.Appflow"); request.Headers["Content-Type"] = "application/json"; request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2020-08-23"; request.HttpMethod = "POST"; request.ResourcePath = "/describe-flow"; using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) { JsonWriter writer = new JsonWriter(stringWriter); writer.WriteObjectStart(); var context = new JsonMarshallerContext(request, writer); if(publicRequest.IsSetFlowName()) { context.Writer.WritePropertyName("flowName"); context.Writer.Write(publicRequest.FlowName); } writer.WriteObjectEnd(); string snippet = stringWriter.ToString(); request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); } return request; } private static DescribeFlowRequestMarshaller _instance = new DescribeFlowRequestMarshaller(); internal static DescribeFlowRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static DescribeFlowRequestMarshaller Instance { get { return _instance; } } } }
101
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the appflow-2020-08-23.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.Appflow.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Appflow.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for DescribeFlow operation /// </summary> public class DescribeFlowResponseUnmarshaller : JsonResponseUnmarshaller { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { DescribeFlowResponse response = new DescribeFlowResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("createdAt", targetDepth)) { var unmarshaller = DateTimeUnmarshaller.Instance; response.CreatedAt = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("createdBy", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.CreatedBy = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("description", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.Description = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("destinationFlowConfigList", targetDepth)) { var unmarshaller = new ListUnmarshaller<DestinationFlowConfig, DestinationFlowConfigUnmarshaller>(DestinationFlowConfigUnmarshaller.Instance); response.DestinationFlowConfigList = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("flowArn", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.FlowArn = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("flowName", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.FlowName = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("flowStatus", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.FlowStatus = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("flowStatusMessage", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.FlowStatusMessage = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("kmsArn", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.KmsArn = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("lastRunExecutionDetails", targetDepth)) { var unmarshaller = ExecutionDetailsUnmarshaller.Instance; response.LastRunExecutionDetails = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("lastRunMetadataCatalogDetails", targetDepth)) { var unmarshaller = new ListUnmarshaller<MetadataCatalogDetail, MetadataCatalogDetailUnmarshaller>(MetadataCatalogDetailUnmarshaller.Instance); response.LastRunMetadataCatalogDetails = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("lastUpdatedAt", targetDepth)) { var unmarshaller = DateTimeUnmarshaller.Instance; response.LastUpdatedAt = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("lastUpdatedBy", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.LastUpdatedBy = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("metadataCatalogConfig", targetDepth)) { var unmarshaller = MetadataCatalogConfigUnmarshaller.Instance; response.MetadataCatalogConfig = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("schemaVersion", targetDepth)) { var unmarshaller = LongUnmarshaller.Instance; response.SchemaVersion = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("sourceFlowConfig", targetDepth)) { var unmarshaller = SourceFlowConfigUnmarshaller.Instance; response.SourceFlowConfig = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("tags", targetDepth)) { var unmarshaller = new DictionaryUnmarshaller<string, string, StringUnmarshaller, StringUnmarshaller>(StringUnmarshaller.Instance, StringUnmarshaller.Instance); response.Tags = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("tasks", targetDepth)) { var unmarshaller = new ListUnmarshaller<Task, TaskUnmarshaller>(TaskUnmarshaller.Instance); response.Tasks = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("triggerConfig", targetDepth)) { var unmarshaller = TriggerConfigUnmarshaller.Instance; response.TriggerConfig = unmarshaller.Unmarshall(context); continue; } } return response; } /// <summary> /// Unmarshaller error response to exception. /// </summary> /// <param name="context"></param> /// <param name="innerException"></param> /// <param name="statusCode"></param> /// <returns></returns> public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) { var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context); errorResponse.InnerException = innerException; errorResponse.StatusCode = statusCode; var responseBodyBytes = context.GetResponseBodyBytes(); using (var streamCopy = new MemoryStream(responseBodyBytes)) using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null)) { if (errorResponse.Code != null && errorResponse.Code.Equals("InternalServerException")) { return InternalServerExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ResourceNotFoundException")) { return ResourceNotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonAppflowException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static DescribeFlowResponseUnmarshaller _instance = new DescribeFlowResponseUnmarshaller(); internal static DescribeFlowResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static DescribeFlowResponseUnmarshaller Instance { get { return _instance; } } } }
222
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the appflow-2020-08-23.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.Appflow.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Appflow.Model.Internal.MarshallTransformations { /// <summary> /// DestinationConnectorProperties Marshaller /// </summary> public class DestinationConnectorPropertiesMarshaller : IRequestMarshaller<DestinationConnectorProperties, JsonMarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="requestObject"></param> /// <param name="context"></param> /// <returns></returns> public void Marshall(DestinationConnectorProperties requestObject, JsonMarshallerContext context) { if(requestObject.IsSetCustomConnector()) { context.Writer.WritePropertyName("CustomConnector"); context.Writer.WriteObjectStart(); var marshaller = CustomConnectorDestinationPropertiesMarshaller.Instance; marshaller.Marshall(requestObject.CustomConnector, context); context.Writer.WriteObjectEnd(); } if(requestObject.IsSetCustomerProfiles()) { context.Writer.WritePropertyName("CustomerProfiles"); context.Writer.WriteObjectStart(); var marshaller = CustomerProfilesDestinationPropertiesMarshaller.Instance; marshaller.Marshall(requestObject.CustomerProfiles, context); context.Writer.WriteObjectEnd(); } if(requestObject.IsSetEventBridge()) { context.Writer.WritePropertyName("EventBridge"); context.Writer.WriteObjectStart(); var marshaller = EventBridgeDestinationPropertiesMarshaller.Instance; marshaller.Marshall(requestObject.EventBridge, context); context.Writer.WriteObjectEnd(); } if(requestObject.IsSetHoneycode()) { context.Writer.WritePropertyName("Honeycode"); context.Writer.WriteObjectStart(); var marshaller = HoneycodeDestinationPropertiesMarshaller.Instance; marshaller.Marshall(requestObject.Honeycode, context); context.Writer.WriteObjectEnd(); } if(requestObject.IsSetLookoutMetrics()) { context.Writer.WritePropertyName("LookoutMetrics"); context.Writer.WriteObjectStart(); var marshaller = LookoutMetricsDestinationPropertiesMarshaller.Instance; marshaller.Marshall(requestObject.LookoutMetrics, context); context.Writer.WriteObjectEnd(); } if(requestObject.IsSetMarketo()) { context.Writer.WritePropertyName("Marketo"); context.Writer.WriteObjectStart(); var marshaller = MarketoDestinationPropertiesMarshaller.Instance; marshaller.Marshall(requestObject.Marketo, context); context.Writer.WriteObjectEnd(); } if(requestObject.IsSetRedshift()) { context.Writer.WritePropertyName("Redshift"); context.Writer.WriteObjectStart(); var marshaller = RedshiftDestinationPropertiesMarshaller.Instance; marshaller.Marshall(requestObject.Redshift, context); context.Writer.WriteObjectEnd(); } if(requestObject.IsSetS3()) { context.Writer.WritePropertyName("S3"); context.Writer.WriteObjectStart(); var marshaller = S3DestinationPropertiesMarshaller.Instance; marshaller.Marshall(requestObject.S3, context); context.Writer.WriteObjectEnd(); } if(requestObject.IsSetSalesforce()) { context.Writer.WritePropertyName("Salesforce"); context.Writer.WriteObjectStart(); var marshaller = SalesforceDestinationPropertiesMarshaller.Instance; marshaller.Marshall(requestObject.Salesforce, context); context.Writer.WriteObjectEnd(); } if(requestObject.IsSetSAPOData()) { context.Writer.WritePropertyName("SAPOData"); context.Writer.WriteObjectStart(); var marshaller = SAPODataDestinationPropertiesMarshaller.Instance; marshaller.Marshall(requestObject.SAPOData, context); context.Writer.WriteObjectEnd(); } if(requestObject.IsSetSnowflake()) { context.Writer.WritePropertyName("Snowflake"); context.Writer.WriteObjectStart(); var marshaller = SnowflakeDestinationPropertiesMarshaller.Instance; marshaller.Marshall(requestObject.Snowflake, context); context.Writer.WriteObjectEnd(); } if(requestObject.IsSetUpsolver()) { context.Writer.WritePropertyName("Upsolver"); context.Writer.WriteObjectStart(); var marshaller = UpsolverDestinationPropertiesMarshaller.Instance; marshaller.Marshall(requestObject.Upsolver, context); context.Writer.WriteObjectEnd(); } if(requestObject.IsSetZendesk()) { context.Writer.WritePropertyName("Zendesk"); context.Writer.WriteObjectStart(); var marshaller = ZendeskDestinationPropertiesMarshaller.Instance; marshaller.Marshall(requestObject.Zendesk, context); context.Writer.WriteObjectEnd(); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static DestinationConnectorPropertiesMarshaller Instance = new DestinationConnectorPropertiesMarshaller(); } }
199
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the appflow-2020-08-23.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.Appflow.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Appflow.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for DestinationConnectorProperties Object /// </summary> public class DestinationConnectorPropertiesUnmarshaller : IUnmarshaller<DestinationConnectorProperties, XmlUnmarshallerContext>, IUnmarshaller<DestinationConnectorProperties, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> DestinationConnectorProperties IUnmarshaller<DestinationConnectorProperties, XmlUnmarshallerContext>.Unmarshall(XmlUnmarshallerContext context) { throw new NotImplementedException(); } /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public DestinationConnectorProperties Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; DestinationConnectorProperties unmarshalledObject = new DestinationConnectorProperties(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("CustomConnector", targetDepth)) { var unmarshaller = CustomConnectorDestinationPropertiesUnmarshaller.Instance; unmarshalledObject.CustomConnector = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("CustomerProfiles", targetDepth)) { var unmarshaller = CustomerProfilesDestinationPropertiesUnmarshaller.Instance; unmarshalledObject.CustomerProfiles = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("EventBridge", targetDepth)) { var unmarshaller = EventBridgeDestinationPropertiesUnmarshaller.Instance; unmarshalledObject.EventBridge = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Honeycode", targetDepth)) { var unmarshaller = HoneycodeDestinationPropertiesUnmarshaller.Instance; unmarshalledObject.Honeycode = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("LookoutMetrics", targetDepth)) { var unmarshaller = LookoutMetricsDestinationPropertiesUnmarshaller.Instance; unmarshalledObject.LookoutMetrics = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Marketo", targetDepth)) { var unmarshaller = MarketoDestinationPropertiesUnmarshaller.Instance; unmarshalledObject.Marketo = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Redshift", targetDepth)) { var unmarshaller = RedshiftDestinationPropertiesUnmarshaller.Instance; unmarshalledObject.Redshift = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("S3", targetDepth)) { var unmarshaller = S3DestinationPropertiesUnmarshaller.Instance; unmarshalledObject.S3 = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Salesforce", targetDepth)) { var unmarshaller = SalesforceDestinationPropertiesUnmarshaller.Instance; unmarshalledObject.Salesforce = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("SAPOData", targetDepth)) { var unmarshaller = SAPODataDestinationPropertiesUnmarshaller.Instance; unmarshalledObject.SAPOData = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Snowflake", targetDepth)) { var unmarshaller = SnowflakeDestinationPropertiesUnmarshaller.Instance; unmarshalledObject.Snowflake = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Upsolver", targetDepth)) { var unmarshaller = UpsolverDestinationPropertiesUnmarshaller.Instance; unmarshalledObject.Upsolver = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Zendesk", targetDepth)) { var unmarshaller = ZendeskDestinationPropertiesUnmarshaller.Instance; unmarshalledObject.Zendesk = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static DestinationConnectorPropertiesUnmarshaller _instance = new DestinationConnectorPropertiesUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static DestinationConnectorPropertiesUnmarshaller 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 appflow-2020-08-23.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.Appflow.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Appflow.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for DestinationFieldProperties Object /// </summary> public class DestinationFieldPropertiesUnmarshaller : IUnmarshaller<DestinationFieldProperties, XmlUnmarshallerContext>, IUnmarshaller<DestinationFieldProperties, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> DestinationFieldProperties IUnmarshaller<DestinationFieldProperties, XmlUnmarshallerContext>.Unmarshall(XmlUnmarshallerContext context) { throw new NotImplementedException(); } /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public DestinationFieldProperties Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; DestinationFieldProperties unmarshalledObject = new DestinationFieldProperties(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("isCreatable", targetDepth)) { var unmarshaller = BoolUnmarshaller.Instance; unmarshalledObject.IsCreatable = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("isDefaultedOnCreate", targetDepth)) { var unmarshaller = BoolUnmarshaller.Instance; unmarshalledObject.IsDefaultedOnCreate = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("isNullable", targetDepth)) { var unmarshaller = BoolUnmarshaller.Instance; unmarshalledObject.IsNullable = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("isUpdatable", targetDepth)) { var unmarshaller = BoolUnmarshaller.Instance; unmarshalledObject.IsUpdatable = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("isUpsertable", targetDepth)) { var unmarshaller = BoolUnmarshaller.Instance; unmarshalledObject.IsUpsertable = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("supportedWriteOperations", targetDepth)) { var unmarshaller = new ListUnmarshaller<string, StringUnmarshaller>(StringUnmarshaller.Instance); unmarshalledObject.SupportedWriteOperations = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static DestinationFieldPropertiesUnmarshaller _instance = new DestinationFieldPropertiesUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static DestinationFieldPropertiesUnmarshaller 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 appflow-2020-08-23.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.Appflow.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Appflow.Model.Internal.MarshallTransformations { /// <summary> /// DestinationFlowConfig Marshaller /// </summary> public class DestinationFlowConfigMarshaller : IRequestMarshaller<DestinationFlowConfig, JsonMarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="requestObject"></param> /// <param name="context"></param> /// <returns></returns> public void Marshall(DestinationFlowConfig requestObject, JsonMarshallerContext context) { if(requestObject.IsSetApiVersion()) { context.Writer.WritePropertyName("apiVersion"); context.Writer.Write(requestObject.ApiVersion); } if(requestObject.IsSetConnectorProfileName()) { context.Writer.WritePropertyName("connectorProfileName"); context.Writer.Write(requestObject.ConnectorProfileName); } if(requestObject.IsSetConnectorType()) { context.Writer.WritePropertyName("connectorType"); context.Writer.Write(requestObject.ConnectorType); } if(requestObject.IsSetDestinationConnectorProperties()) { context.Writer.WritePropertyName("destinationConnectorProperties"); context.Writer.WriteObjectStart(); var marshaller = DestinationConnectorPropertiesMarshaller.Instance; marshaller.Marshall(requestObject.DestinationConnectorProperties, context); context.Writer.WriteObjectEnd(); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static DestinationFlowConfigMarshaller Instance = new DestinationFlowConfigMarshaller(); } }
85
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the appflow-2020-08-23.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.Appflow.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Appflow.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for DestinationFlowConfig Object /// </summary> public class DestinationFlowConfigUnmarshaller : IUnmarshaller<DestinationFlowConfig, XmlUnmarshallerContext>, IUnmarshaller<DestinationFlowConfig, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> DestinationFlowConfig IUnmarshaller<DestinationFlowConfig, XmlUnmarshallerContext>.Unmarshall(XmlUnmarshallerContext context) { throw new NotImplementedException(); } /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public DestinationFlowConfig Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; DestinationFlowConfig unmarshalledObject = new DestinationFlowConfig(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("apiVersion", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.ApiVersion = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("connectorProfileName", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.ConnectorProfileName = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("connectorType", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.ConnectorType = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("destinationConnectorProperties", targetDepth)) { var unmarshaller = DestinationConnectorPropertiesUnmarshaller.Instance; unmarshalledObject.DestinationConnectorProperties = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static DestinationFlowConfigUnmarshaller _instance = new DestinationFlowConfigUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static DestinationFlowConfigUnmarshaller Instance { get { return _instance; } } } }
110
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the appflow-2020-08-23.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.Appflow.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Appflow.Model.Internal.MarshallTransformations { /// <summary> /// DynatraceConnectorProfileCredentials Marshaller /// </summary> public class DynatraceConnectorProfileCredentialsMarshaller : IRequestMarshaller<DynatraceConnectorProfileCredentials, JsonMarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="requestObject"></param> /// <param name="context"></param> /// <returns></returns> public void Marshall(DynatraceConnectorProfileCredentials requestObject, JsonMarshallerContext context) { if(requestObject.IsSetApiToken()) { context.Writer.WritePropertyName("apiToken"); context.Writer.Write(requestObject.ApiToken); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static DynatraceConnectorProfileCredentialsMarshaller Instance = new DynatraceConnectorProfileCredentialsMarshaller(); } }
62
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the appflow-2020-08-23.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.Appflow.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Appflow.Model.Internal.MarshallTransformations { /// <summary> /// DynatraceConnectorProfileProperties Marshaller /// </summary> public class DynatraceConnectorProfilePropertiesMarshaller : IRequestMarshaller<DynatraceConnectorProfileProperties, JsonMarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="requestObject"></param> /// <param name="context"></param> /// <returns></returns> public void Marshall(DynatraceConnectorProfileProperties requestObject, JsonMarshallerContext context) { if(requestObject.IsSetInstanceUrl()) { context.Writer.WritePropertyName("instanceUrl"); context.Writer.Write(requestObject.InstanceUrl); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static DynatraceConnectorProfilePropertiesMarshaller Instance = new DynatraceConnectorProfilePropertiesMarshaller(); } }
62
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the appflow-2020-08-23.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.Appflow.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Appflow.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for DynatraceConnectorProfileProperties Object /// </summary> public class DynatraceConnectorProfilePropertiesUnmarshaller : IUnmarshaller<DynatraceConnectorProfileProperties, XmlUnmarshallerContext>, IUnmarshaller<DynatraceConnectorProfileProperties, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> DynatraceConnectorProfileProperties IUnmarshaller<DynatraceConnectorProfileProperties, XmlUnmarshallerContext>.Unmarshall(XmlUnmarshallerContext context) { throw new NotImplementedException(); } /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public DynatraceConnectorProfileProperties Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; DynatraceConnectorProfileProperties unmarshalledObject = new DynatraceConnectorProfileProperties(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("instanceUrl", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.InstanceUrl = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static DynatraceConnectorProfilePropertiesUnmarshaller _instance = new DynatraceConnectorProfilePropertiesUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static DynatraceConnectorProfilePropertiesUnmarshaller Instance { get { return _instance; } } } }
92
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the appflow-2020-08-23.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.Appflow.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Appflow.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for DynatraceMetadata Object /// </summary> public class DynatraceMetadataUnmarshaller : IUnmarshaller<DynatraceMetadata, XmlUnmarshallerContext>, IUnmarshaller<DynatraceMetadata, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> DynatraceMetadata IUnmarshaller<DynatraceMetadata, XmlUnmarshallerContext>.Unmarshall(XmlUnmarshallerContext context) { throw new NotImplementedException(); } /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public DynatraceMetadata Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; DynatraceMetadata unmarshalledObject = new DynatraceMetadata(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { } return unmarshalledObject; } private static DynatraceMetadataUnmarshaller _instance = new DynatraceMetadataUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static DynatraceMetadataUnmarshaller Instance { get { return _instance; } } } }
86
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the appflow-2020-08-23.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.Appflow.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Appflow.Model.Internal.MarshallTransformations { /// <summary> /// DynatraceSourceProperties Marshaller /// </summary> public class DynatraceSourcePropertiesMarshaller : IRequestMarshaller<DynatraceSourceProperties, JsonMarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="requestObject"></param> /// <param name="context"></param> /// <returns></returns> public void Marshall(DynatraceSourceProperties requestObject, JsonMarshallerContext context) { if(requestObject.IsSetObject()) { context.Writer.WritePropertyName("object"); context.Writer.Write(requestObject.Object); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static DynatraceSourcePropertiesMarshaller Instance = new DynatraceSourcePropertiesMarshaller(); } }
62
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the appflow-2020-08-23.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.Appflow.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Appflow.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for DynatraceSourceProperties Object /// </summary> public class DynatraceSourcePropertiesUnmarshaller : IUnmarshaller<DynatraceSourceProperties, XmlUnmarshallerContext>, IUnmarshaller<DynatraceSourceProperties, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> DynatraceSourceProperties IUnmarshaller<DynatraceSourceProperties, XmlUnmarshallerContext>.Unmarshall(XmlUnmarshallerContext context) { throw new NotImplementedException(); } /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public DynatraceSourceProperties Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; DynatraceSourceProperties unmarshalledObject = new DynatraceSourceProperties(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("object", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Object = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static DynatraceSourcePropertiesUnmarshaller _instance = new DynatraceSourcePropertiesUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static DynatraceSourcePropertiesUnmarshaller Instance { get { return _instance; } } } }
92
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the appflow-2020-08-23.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.Appflow.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Appflow.Model.Internal.MarshallTransformations { /// <summary> /// ErrorHandlingConfig Marshaller /// </summary> public class ErrorHandlingConfigMarshaller : IRequestMarshaller<ErrorHandlingConfig, JsonMarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="requestObject"></param> /// <param name="context"></param> /// <returns></returns> public void Marshall(ErrorHandlingConfig requestObject, JsonMarshallerContext context) { if(requestObject.IsSetBucketName()) { context.Writer.WritePropertyName("bucketName"); context.Writer.Write(requestObject.BucketName); } if(requestObject.IsSetBucketPrefix()) { context.Writer.WritePropertyName("bucketPrefix"); context.Writer.Write(requestObject.BucketPrefix); } if(requestObject.IsSetFailOnFirstDestinationError()) { context.Writer.WritePropertyName("failOnFirstDestinationError"); context.Writer.Write(requestObject.FailOnFirstDestinationError); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static ErrorHandlingConfigMarshaller Instance = new ErrorHandlingConfigMarshaller(); } }
74
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the appflow-2020-08-23.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.Appflow.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Appflow.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for ErrorHandlingConfig Object /// </summary> public class ErrorHandlingConfigUnmarshaller : IUnmarshaller<ErrorHandlingConfig, XmlUnmarshallerContext>, IUnmarshaller<ErrorHandlingConfig, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> ErrorHandlingConfig IUnmarshaller<ErrorHandlingConfig, XmlUnmarshallerContext>.Unmarshall(XmlUnmarshallerContext context) { throw new NotImplementedException(); } /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public ErrorHandlingConfig Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; ErrorHandlingConfig unmarshalledObject = new ErrorHandlingConfig(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("bucketName", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.BucketName = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("bucketPrefix", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.BucketPrefix = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("failOnFirstDestinationError", targetDepth)) { var unmarshaller = BoolUnmarshaller.Instance; unmarshalledObject.FailOnFirstDestinationError = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static ErrorHandlingConfigUnmarshaller _instance = new ErrorHandlingConfigUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static ErrorHandlingConfigUnmarshaller 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 appflow-2020-08-23.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.Appflow.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Appflow.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for ErrorInfo Object /// </summary> public class ErrorInfoUnmarshaller : IUnmarshaller<ErrorInfo, XmlUnmarshallerContext>, IUnmarshaller<ErrorInfo, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> ErrorInfo IUnmarshaller<ErrorInfo, XmlUnmarshallerContext>.Unmarshall(XmlUnmarshallerContext context) { throw new NotImplementedException(); } /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public ErrorInfo Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; ErrorInfo unmarshalledObject = new ErrorInfo(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("executionMessage", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.ExecutionMessage = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("putFailuresCount", targetDepth)) { var unmarshaller = LongUnmarshaller.Instance; unmarshalledObject.PutFailuresCount = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static ErrorInfoUnmarshaller _instance = new ErrorInfoUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static ErrorInfoUnmarshaller 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 appflow-2020-08-23.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.Appflow.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Appflow.Model.Internal.MarshallTransformations { /// <summary> /// EventBridgeDestinationProperties Marshaller /// </summary> public class EventBridgeDestinationPropertiesMarshaller : IRequestMarshaller<EventBridgeDestinationProperties, JsonMarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="requestObject"></param> /// <param name="context"></param> /// <returns></returns> public void Marshall(EventBridgeDestinationProperties requestObject, JsonMarshallerContext context) { if(requestObject.IsSetErrorHandlingConfig()) { context.Writer.WritePropertyName("errorHandlingConfig"); context.Writer.WriteObjectStart(); var marshaller = ErrorHandlingConfigMarshaller.Instance; marshaller.Marshall(requestObject.ErrorHandlingConfig, context); context.Writer.WriteObjectEnd(); } if(requestObject.IsSetObject()) { context.Writer.WritePropertyName("object"); context.Writer.Write(requestObject.Object); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static EventBridgeDestinationPropertiesMarshaller Instance = new EventBridgeDestinationPropertiesMarshaller(); } }
73
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the appflow-2020-08-23.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.Appflow.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Appflow.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for EventBridgeDestinationProperties Object /// </summary> public class EventBridgeDestinationPropertiesUnmarshaller : IUnmarshaller<EventBridgeDestinationProperties, XmlUnmarshallerContext>, IUnmarshaller<EventBridgeDestinationProperties, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> EventBridgeDestinationProperties IUnmarshaller<EventBridgeDestinationProperties, XmlUnmarshallerContext>.Unmarshall(XmlUnmarshallerContext context) { throw new NotImplementedException(); } /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public EventBridgeDestinationProperties Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; EventBridgeDestinationProperties unmarshalledObject = new EventBridgeDestinationProperties(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("errorHandlingConfig", targetDepth)) { var unmarshaller = ErrorHandlingConfigUnmarshaller.Instance; unmarshalledObject.ErrorHandlingConfig = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("object", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Object = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static EventBridgeDestinationPropertiesUnmarshaller _instance = new EventBridgeDestinationPropertiesUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static EventBridgeDestinationPropertiesUnmarshaller 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 appflow-2020-08-23.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.Appflow.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Appflow.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for EventBridgeMetadata Object /// </summary> public class EventBridgeMetadataUnmarshaller : IUnmarshaller<EventBridgeMetadata, XmlUnmarshallerContext>, IUnmarshaller<EventBridgeMetadata, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> EventBridgeMetadata IUnmarshaller<EventBridgeMetadata, XmlUnmarshallerContext>.Unmarshall(XmlUnmarshallerContext context) { throw new NotImplementedException(); } /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public EventBridgeMetadata Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; EventBridgeMetadata unmarshalledObject = new EventBridgeMetadata(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { } return unmarshalledObject; } private static EventBridgeMetadataUnmarshaller _instance = new EventBridgeMetadataUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static EventBridgeMetadataUnmarshaller Instance { get { return _instance; } } } }
86
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the appflow-2020-08-23.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.Appflow.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Appflow.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for ExecutionDetails Object /// </summary> public class ExecutionDetailsUnmarshaller : IUnmarshaller<ExecutionDetails, XmlUnmarshallerContext>, IUnmarshaller<ExecutionDetails, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> ExecutionDetails IUnmarshaller<ExecutionDetails, XmlUnmarshallerContext>.Unmarshall(XmlUnmarshallerContext context) { throw new NotImplementedException(); } /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public ExecutionDetails Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; ExecutionDetails unmarshalledObject = new ExecutionDetails(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("mostRecentExecutionMessage", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.MostRecentExecutionMessage = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("mostRecentExecutionStatus", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.MostRecentExecutionStatus = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("mostRecentExecutionTime", targetDepth)) { var unmarshaller = DateTimeUnmarshaller.Instance; unmarshalledObject.MostRecentExecutionTime = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static ExecutionDetailsUnmarshaller _instance = new ExecutionDetailsUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static ExecutionDetailsUnmarshaller 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 appflow-2020-08-23.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.Appflow.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Appflow.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for ExecutionRecord Object /// </summary> public class ExecutionRecordUnmarshaller : IUnmarshaller<ExecutionRecord, XmlUnmarshallerContext>, IUnmarshaller<ExecutionRecord, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> ExecutionRecord IUnmarshaller<ExecutionRecord, XmlUnmarshallerContext>.Unmarshall(XmlUnmarshallerContext context) { throw new NotImplementedException(); } /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public ExecutionRecord Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; ExecutionRecord unmarshalledObject = new ExecutionRecord(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("dataPullEndTime", targetDepth)) { var unmarshaller = DateTimeUnmarshaller.Instance; unmarshalledObject.DataPullEndTime = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("dataPullStartTime", targetDepth)) { var unmarshaller = DateTimeUnmarshaller.Instance; unmarshalledObject.DataPullStartTime = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("executionId", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.ExecutionId = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("executionResult", targetDepth)) { var unmarshaller = ExecutionResultUnmarshaller.Instance; unmarshalledObject.ExecutionResult = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("executionStatus", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.ExecutionStatus = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("lastUpdatedAt", targetDepth)) { var unmarshaller = DateTimeUnmarshaller.Instance; unmarshalledObject.LastUpdatedAt = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("metadataCatalogDetails", targetDepth)) { var unmarshaller = new ListUnmarshaller<MetadataCatalogDetail, MetadataCatalogDetailUnmarshaller>(MetadataCatalogDetailUnmarshaller.Instance); unmarshalledObject.MetadataCatalogDetails = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("startedAt", targetDepth)) { var unmarshaller = DateTimeUnmarshaller.Instance; unmarshalledObject.StartedAt = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static ExecutionRecordUnmarshaller _instance = new ExecutionRecordUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static ExecutionRecordUnmarshaller Instance { get { return _instance; } } } }
134
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the appflow-2020-08-23.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.Appflow.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Appflow.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for ExecutionResult Object /// </summary> public class ExecutionResultUnmarshaller : IUnmarshaller<ExecutionResult, XmlUnmarshallerContext>, IUnmarshaller<ExecutionResult, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> ExecutionResult IUnmarshaller<ExecutionResult, XmlUnmarshallerContext>.Unmarshall(XmlUnmarshallerContext context) { throw new NotImplementedException(); } /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public ExecutionResult Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; ExecutionResult unmarshalledObject = new ExecutionResult(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("bytesProcessed", targetDepth)) { var unmarshaller = LongUnmarshaller.Instance; unmarshalledObject.BytesProcessed = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("bytesWritten", targetDepth)) { var unmarshaller = LongUnmarshaller.Instance; unmarshalledObject.BytesWritten = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("errorInfo", targetDepth)) { var unmarshaller = ErrorInfoUnmarshaller.Instance; unmarshalledObject.ErrorInfo = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("recordsProcessed", targetDepth)) { var unmarshaller = LongUnmarshaller.Instance; unmarshalledObject.RecordsProcessed = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static ExecutionResultUnmarshaller _instance = new ExecutionResultUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static ExecutionResultUnmarshaller Instance { get { return _instance; } } } }
110
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the appflow-2020-08-23.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.Appflow.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Appflow.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for FieldTypeDetails Object /// </summary> public class FieldTypeDetailsUnmarshaller : IUnmarshaller<FieldTypeDetails, XmlUnmarshallerContext>, IUnmarshaller<FieldTypeDetails, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> FieldTypeDetails IUnmarshaller<FieldTypeDetails, XmlUnmarshallerContext>.Unmarshall(XmlUnmarshallerContext context) { throw new NotImplementedException(); } /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public FieldTypeDetails Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; FieldTypeDetails unmarshalledObject = new FieldTypeDetails(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("fieldLengthRange", targetDepth)) { var unmarshaller = RangeUnmarshaller.Instance; unmarshalledObject.FieldLengthRange = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("fieldType", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.FieldType = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("fieldValueRange", targetDepth)) { var unmarshaller = RangeUnmarshaller.Instance; unmarshalledObject.FieldValueRange = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("filterOperators", targetDepth)) { var unmarshaller = new ListUnmarshaller<string, StringUnmarshaller>(StringUnmarshaller.Instance); unmarshalledObject.FilterOperators = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("supportedDateFormat", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.SupportedDateFormat = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("supportedValues", targetDepth)) { var unmarshaller = new ListUnmarshaller<string, StringUnmarshaller>(StringUnmarshaller.Instance); unmarshalledObject.SupportedValues = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("valueRegexPattern", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.ValueRegexPattern = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static FieldTypeDetailsUnmarshaller _instance = new FieldTypeDetailsUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static FieldTypeDetailsUnmarshaller 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 appflow-2020-08-23.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.Appflow.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Appflow.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for FlowDefinition Object /// </summary> public class FlowDefinitionUnmarshaller : IUnmarshaller<FlowDefinition, XmlUnmarshallerContext>, IUnmarshaller<FlowDefinition, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> FlowDefinition IUnmarshaller<FlowDefinition, XmlUnmarshallerContext>.Unmarshall(XmlUnmarshallerContext context) { throw new NotImplementedException(); } /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public FlowDefinition Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; FlowDefinition unmarshalledObject = new FlowDefinition(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("createdAt", targetDepth)) { var unmarshaller = DateTimeUnmarshaller.Instance; unmarshalledObject.CreatedAt = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("createdBy", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.CreatedBy = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("description", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Description = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("destinationConnectorLabel", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.DestinationConnectorLabel = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("destinationConnectorType", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.DestinationConnectorType = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("flowArn", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.FlowArn = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("flowName", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.FlowName = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("flowStatus", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.FlowStatus = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("lastRunExecutionDetails", targetDepth)) { var unmarshaller = ExecutionDetailsUnmarshaller.Instance; unmarshalledObject.LastRunExecutionDetails = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("lastUpdatedAt", targetDepth)) { var unmarshaller = DateTimeUnmarshaller.Instance; unmarshalledObject.LastUpdatedAt = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("lastUpdatedBy", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.LastUpdatedBy = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("sourceConnectorLabel", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.SourceConnectorLabel = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("sourceConnectorType", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.SourceConnectorType = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("tags", targetDepth)) { var unmarshaller = new DictionaryUnmarshaller<string, string, StringUnmarshaller, StringUnmarshaller>(StringUnmarshaller.Instance, StringUnmarshaller.Instance); unmarshalledObject.Tags = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("triggerType", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.TriggerType = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static FlowDefinitionUnmarshaller _instance = new FlowDefinitionUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static FlowDefinitionUnmarshaller Instance { get { return _instance; } } } }
176
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the appflow-2020-08-23.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.Appflow.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Appflow.Model.Internal.MarshallTransformations { /// <summary> /// GlueDataCatalogConfig Marshaller /// </summary> public class GlueDataCatalogConfigMarshaller : IRequestMarshaller<GlueDataCatalogConfig, JsonMarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="requestObject"></param> /// <param name="context"></param> /// <returns></returns> public void Marshall(GlueDataCatalogConfig requestObject, JsonMarshallerContext context) { if(requestObject.IsSetDatabaseName()) { context.Writer.WritePropertyName("databaseName"); context.Writer.Write(requestObject.DatabaseName); } if(requestObject.IsSetRoleArn()) { context.Writer.WritePropertyName("roleArn"); context.Writer.Write(requestObject.RoleArn); } if(requestObject.IsSetTablePrefix()) { context.Writer.WritePropertyName("tablePrefix"); context.Writer.Write(requestObject.TablePrefix); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static GlueDataCatalogConfigMarshaller Instance = new GlueDataCatalogConfigMarshaller(); } }
74
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the appflow-2020-08-23.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.Appflow.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Appflow.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for GlueDataCatalogConfig Object /// </summary> public class GlueDataCatalogConfigUnmarshaller : IUnmarshaller<GlueDataCatalogConfig, XmlUnmarshallerContext>, IUnmarshaller<GlueDataCatalogConfig, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> GlueDataCatalogConfig IUnmarshaller<GlueDataCatalogConfig, XmlUnmarshallerContext>.Unmarshall(XmlUnmarshallerContext context) { throw new NotImplementedException(); } /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public GlueDataCatalogConfig Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; GlueDataCatalogConfig unmarshalledObject = new GlueDataCatalogConfig(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("databaseName", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.DatabaseName = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("roleArn", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.RoleArn = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("tablePrefix", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.TablePrefix = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static GlueDataCatalogConfigUnmarshaller _instance = new GlueDataCatalogConfigUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static GlueDataCatalogConfigUnmarshaller 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 appflow-2020-08-23.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.Appflow.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Appflow.Model.Internal.MarshallTransformations { /// <summary> /// GoogleAnalyticsConnectorProfileCredentials Marshaller /// </summary> public class GoogleAnalyticsConnectorProfileCredentialsMarshaller : IRequestMarshaller<GoogleAnalyticsConnectorProfileCredentials, JsonMarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="requestObject"></param> /// <param name="context"></param> /// <returns></returns> public void Marshall(GoogleAnalyticsConnectorProfileCredentials requestObject, JsonMarshallerContext context) { if(requestObject.IsSetAccessToken()) { context.Writer.WritePropertyName("accessToken"); context.Writer.Write(requestObject.AccessToken); } if(requestObject.IsSetClientId()) { context.Writer.WritePropertyName("clientId"); context.Writer.Write(requestObject.ClientId); } if(requestObject.IsSetClientSecret()) { context.Writer.WritePropertyName("clientSecret"); context.Writer.Write(requestObject.ClientSecret); } if(requestObject.IsSetOAuthRequest()) { context.Writer.WritePropertyName("oAuthRequest"); context.Writer.WriteObjectStart(); var marshaller = ConnectorOAuthRequestMarshaller.Instance; marshaller.Marshall(requestObject.OAuthRequest, context); context.Writer.WriteObjectEnd(); } if(requestObject.IsSetRefreshToken()) { context.Writer.WritePropertyName("refreshToken"); context.Writer.Write(requestObject.RefreshToken); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static GoogleAnalyticsConnectorProfileCredentialsMarshaller Instance = new GoogleAnalyticsConnectorProfileCredentialsMarshaller(); } }
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 appflow-2020-08-23.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.Appflow.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Appflow.Model.Internal.MarshallTransformations { /// <summary> /// GoogleAnalyticsConnectorProfileProperties Marshaller /// </summary> public class GoogleAnalyticsConnectorProfilePropertiesMarshaller : IRequestMarshaller<GoogleAnalyticsConnectorProfileProperties, JsonMarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="requestObject"></param> /// <param name="context"></param> /// <returns></returns> public void Marshall(GoogleAnalyticsConnectorProfileProperties requestObject, JsonMarshallerContext context) { } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static GoogleAnalyticsConnectorProfilePropertiesMarshaller Instance = new GoogleAnalyticsConnectorProfilePropertiesMarshaller(); } }
56
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the appflow-2020-08-23.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.Appflow.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Appflow.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for GoogleAnalyticsConnectorProfileProperties Object /// </summary> public class GoogleAnalyticsConnectorProfilePropertiesUnmarshaller : IUnmarshaller<GoogleAnalyticsConnectorProfileProperties, XmlUnmarshallerContext>, IUnmarshaller<GoogleAnalyticsConnectorProfileProperties, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> GoogleAnalyticsConnectorProfileProperties IUnmarshaller<GoogleAnalyticsConnectorProfileProperties, XmlUnmarshallerContext>.Unmarshall(XmlUnmarshallerContext context) { throw new NotImplementedException(); } /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public GoogleAnalyticsConnectorProfileProperties Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; GoogleAnalyticsConnectorProfileProperties unmarshalledObject = new GoogleAnalyticsConnectorProfileProperties(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { } return unmarshalledObject; } private static GoogleAnalyticsConnectorProfilePropertiesUnmarshaller _instance = new GoogleAnalyticsConnectorProfilePropertiesUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static GoogleAnalyticsConnectorProfilePropertiesUnmarshaller Instance { get { return _instance; } } } }
86
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the appflow-2020-08-23.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.Appflow.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Appflow.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for GoogleAnalyticsMetadata Object /// </summary> public class GoogleAnalyticsMetadataUnmarshaller : IUnmarshaller<GoogleAnalyticsMetadata, XmlUnmarshallerContext>, IUnmarshaller<GoogleAnalyticsMetadata, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> GoogleAnalyticsMetadata IUnmarshaller<GoogleAnalyticsMetadata, XmlUnmarshallerContext>.Unmarshall(XmlUnmarshallerContext context) { throw new NotImplementedException(); } /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public GoogleAnalyticsMetadata Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; GoogleAnalyticsMetadata unmarshalledObject = new GoogleAnalyticsMetadata(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("oAuthScopes", targetDepth)) { var unmarshaller = new ListUnmarshaller<string, StringUnmarshaller>(StringUnmarshaller.Instance); unmarshalledObject.OAuthScopes = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static GoogleAnalyticsMetadataUnmarshaller _instance = new GoogleAnalyticsMetadataUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static GoogleAnalyticsMetadataUnmarshaller Instance { get { return _instance; } } } }
92
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the appflow-2020-08-23.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.Appflow.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Appflow.Model.Internal.MarshallTransformations { /// <summary> /// GoogleAnalyticsSourceProperties Marshaller /// </summary> public class GoogleAnalyticsSourcePropertiesMarshaller : IRequestMarshaller<GoogleAnalyticsSourceProperties, JsonMarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="requestObject"></param> /// <param name="context"></param> /// <returns></returns> public void Marshall(GoogleAnalyticsSourceProperties requestObject, JsonMarshallerContext context) { if(requestObject.IsSetObject()) { context.Writer.WritePropertyName("object"); context.Writer.Write(requestObject.Object); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static GoogleAnalyticsSourcePropertiesMarshaller Instance = new GoogleAnalyticsSourcePropertiesMarshaller(); } }
62
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the appflow-2020-08-23.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.Appflow.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Appflow.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for GoogleAnalyticsSourceProperties Object /// </summary> public class GoogleAnalyticsSourcePropertiesUnmarshaller : IUnmarshaller<GoogleAnalyticsSourceProperties, XmlUnmarshallerContext>, IUnmarshaller<GoogleAnalyticsSourceProperties, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> GoogleAnalyticsSourceProperties IUnmarshaller<GoogleAnalyticsSourceProperties, XmlUnmarshallerContext>.Unmarshall(XmlUnmarshallerContext context) { throw new NotImplementedException(); } /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public GoogleAnalyticsSourceProperties Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; GoogleAnalyticsSourceProperties unmarshalledObject = new GoogleAnalyticsSourceProperties(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("object", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Object = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static GoogleAnalyticsSourcePropertiesUnmarshaller _instance = new GoogleAnalyticsSourcePropertiesUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static GoogleAnalyticsSourcePropertiesUnmarshaller Instance { get { return _instance; } } } }
92
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the appflow-2020-08-23.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.Appflow.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Appflow.Model.Internal.MarshallTransformations { /// <summary> /// HoneycodeConnectorProfileCredentials Marshaller /// </summary> public class HoneycodeConnectorProfileCredentialsMarshaller : IRequestMarshaller<HoneycodeConnectorProfileCredentials, JsonMarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="requestObject"></param> /// <param name="context"></param> /// <returns></returns> public void Marshall(HoneycodeConnectorProfileCredentials requestObject, JsonMarshallerContext context) { if(requestObject.IsSetAccessToken()) { context.Writer.WritePropertyName("accessToken"); context.Writer.Write(requestObject.AccessToken); } if(requestObject.IsSetOAuthRequest()) { context.Writer.WritePropertyName("oAuthRequest"); context.Writer.WriteObjectStart(); var marshaller = ConnectorOAuthRequestMarshaller.Instance; marshaller.Marshall(requestObject.OAuthRequest, context); context.Writer.WriteObjectEnd(); } if(requestObject.IsSetRefreshToken()) { context.Writer.WritePropertyName("refreshToken"); context.Writer.Write(requestObject.RefreshToken); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static HoneycodeConnectorProfileCredentialsMarshaller Instance = new HoneycodeConnectorProfileCredentialsMarshaller(); } }
79
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the appflow-2020-08-23.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.Appflow.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Appflow.Model.Internal.MarshallTransformations { /// <summary> /// HoneycodeConnectorProfileProperties Marshaller /// </summary> public class HoneycodeConnectorProfilePropertiesMarshaller : IRequestMarshaller<HoneycodeConnectorProfileProperties, JsonMarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="requestObject"></param> /// <param name="context"></param> /// <returns></returns> public void Marshall(HoneycodeConnectorProfileProperties requestObject, JsonMarshallerContext context) { } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static HoneycodeConnectorProfilePropertiesMarshaller Instance = new HoneycodeConnectorProfilePropertiesMarshaller(); } }
56
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the appflow-2020-08-23.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.Appflow.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Appflow.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for HoneycodeConnectorProfileProperties Object /// </summary> public class HoneycodeConnectorProfilePropertiesUnmarshaller : IUnmarshaller<HoneycodeConnectorProfileProperties, XmlUnmarshallerContext>, IUnmarshaller<HoneycodeConnectorProfileProperties, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> HoneycodeConnectorProfileProperties IUnmarshaller<HoneycodeConnectorProfileProperties, XmlUnmarshallerContext>.Unmarshall(XmlUnmarshallerContext context) { throw new NotImplementedException(); } /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public HoneycodeConnectorProfileProperties Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; HoneycodeConnectorProfileProperties unmarshalledObject = new HoneycodeConnectorProfileProperties(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { } return unmarshalledObject; } private static HoneycodeConnectorProfilePropertiesUnmarshaller _instance = new HoneycodeConnectorProfilePropertiesUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static HoneycodeConnectorProfilePropertiesUnmarshaller Instance { get { return _instance; } } } }
86
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the appflow-2020-08-23.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.Appflow.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Appflow.Model.Internal.MarshallTransformations { /// <summary> /// HoneycodeDestinationProperties Marshaller /// </summary> public class HoneycodeDestinationPropertiesMarshaller : IRequestMarshaller<HoneycodeDestinationProperties, JsonMarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="requestObject"></param> /// <param name="context"></param> /// <returns></returns> public void Marshall(HoneycodeDestinationProperties requestObject, JsonMarshallerContext context) { if(requestObject.IsSetErrorHandlingConfig()) { context.Writer.WritePropertyName("errorHandlingConfig"); context.Writer.WriteObjectStart(); var marshaller = ErrorHandlingConfigMarshaller.Instance; marshaller.Marshall(requestObject.ErrorHandlingConfig, context); context.Writer.WriteObjectEnd(); } if(requestObject.IsSetObject()) { context.Writer.WritePropertyName("object"); context.Writer.Write(requestObject.Object); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static HoneycodeDestinationPropertiesMarshaller Instance = new HoneycodeDestinationPropertiesMarshaller(); } }
73
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the appflow-2020-08-23.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.Appflow.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Appflow.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for HoneycodeDestinationProperties Object /// </summary> public class HoneycodeDestinationPropertiesUnmarshaller : IUnmarshaller<HoneycodeDestinationProperties, XmlUnmarshallerContext>, IUnmarshaller<HoneycodeDestinationProperties, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> HoneycodeDestinationProperties IUnmarshaller<HoneycodeDestinationProperties, XmlUnmarshallerContext>.Unmarshall(XmlUnmarshallerContext context) { throw new NotImplementedException(); } /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public HoneycodeDestinationProperties Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; HoneycodeDestinationProperties unmarshalledObject = new HoneycodeDestinationProperties(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("errorHandlingConfig", targetDepth)) { var unmarshaller = ErrorHandlingConfigUnmarshaller.Instance; unmarshalledObject.ErrorHandlingConfig = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("object", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Object = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static HoneycodeDestinationPropertiesUnmarshaller _instance = new HoneycodeDestinationPropertiesUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static HoneycodeDestinationPropertiesUnmarshaller 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 appflow-2020-08-23.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.Appflow.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Appflow.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for HoneycodeMetadata Object /// </summary> public class HoneycodeMetadataUnmarshaller : IUnmarshaller<HoneycodeMetadata, XmlUnmarshallerContext>, IUnmarshaller<HoneycodeMetadata, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> HoneycodeMetadata IUnmarshaller<HoneycodeMetadata, XmlUnmarshallerContext>.Unmarshall(XmlUnmarshallerContext context) { throw new NotImplementedException(); } /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public HoneycodeMetadata Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; HoneycodeMetadata unmarshalledObject = new HoneycodeMetadata(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("oAuthScopes", targetDepth)) { var unmarshaller = new ListUnmarshaller<string, StringUnmarshaller>(StringUnmarshaller.Instance); unmarshalledObject.OAuthScopes = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static HoneycodeMetadataUnmarshaller _instance = new HoneycodeMetadataUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static HoneycodeMetadataUnmarshaller Instance { get { return _instance; } } } }
92