/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See 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 { /// /// ConnectorProfileProperties Marshaller /// public class ConnectorProfilePropertiesMarshaller : IRequestMarshaller { /// /// Unmarshaller the response from the service to the response class. /// /// /// /// 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(); } } /// /// Singleton Marshaller. /// public readonly static ConnectorProfilePropertiesMarshaller Instance = new ConnectorProfilePropertiesMarshaller(); } }