/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include #include #include using namespace Aws::Utils::Json; using namespace Aws::Utils; namespace Aws { namespace Appflow { namespace Model { SourceConnectorProperties::SourceConnectorProperties() : m_amplitudeHasBeenSet(false), m_datadogHasBeenSet(false), m_dynatraceHasBeenSet(false), m_googleAnalyticsHasBeenSet(false), m_inforNexusHasBeenSet(false), m_marketoHasBeenSet(false), m_s3HasBeenSet(false), m_salesforceHasBeenSet(false), m_serviceNowHasBeenSet(false), m_singularHasBeenSet(false), m_slackHasBeenSet(false), m_trendmicroHasBeenSet(false), m_veevaHasBeenSet(false), m_zendeskHasBeenSet(false), m_sAPODataHasBeenSet(false), m_customConnectorHasBeenSet(false), m_pardotHasBeenSet(false) { } SourceConnectorProperties::SourceConnectorProperties(JsonView jsonValue) : m_amplitudeHasBeenSet(false), m_datadogHasBeenSet(false), m_dynatraceHasBeenSet(false), m_googleAnalyticsHasBeenSet(false), m_inforNexusHasBeenSet(false), m_marketoHasBeenSet(false), m_s3HasBeenSet(false), m_salesforceHasBeenSet(false), m_serviceNowHasBeenSet(false), m_singularHasBeenSet(false), m_slackHasBeenSet(false), m_trendmicroHasBeenSet(false), m_veevaHasBeenSet(false), m_zendeskHasBeenSet(false), m_sAPODataHasBeenSet(false), m_customConnectorHasBeenSet(false), m_pardotHasBeenSet(false) { *this = jsonValue; } SourceConnectorProperties& SourceConnectorProperties::operator =(JsonView jsonValue) { if(jsonValue.ValueExists("Amplitude")) { m_amplitude = jsonValue.GetObject("Amplitude"); m_amplitudeHasBeenSet = true; } if(jsonValue.ValueExists("Datadog")) { m_datadog = jsonValue.GetObject("Datadog"); m_datadogHasBeenSet = true; } if(jsonValue.ValueExists("Dynatrace")) { m_dynatrace = jsonValue.GetObject("Dynatrace"); m_dynatraceHasBeenSet = true; } if(jsonValue.ValueExists("GoogleAnalytics")) { m_googleAnalytics = jsonValue.GetObject("GoogleAnalytics"); m_googleAnalyticsHasBeenSet = true; } if(jsonValue.ValueExists("InforNexus")) { m_inforNexus = jsonValue.GetObject("InforNexus"); m_inforNexusHasBeenSet = true; } if(jsonValue.ValueExists("Marketo")) { m_marketo = jsonValue.GetObject("Marketo"); m_marketoHasBeenSet = true; } if(jsonValue.ValueExists("S3")) { m_s3 = jsonValue.GetObject("S3"); m_s3HasBeenSet = true; } if(jsonValue.ValueExists("Salesforce")) { m_salesforce = jsonValue.GetObject("Salesforce"); m_salesforceHasBeenSet = true; } if(jsonValue.ValueExists("ServiceNow")) { m_serviceNow = jsonValue.GetObject("ServiceNow"); m_serviceNowHasBeenSet = true; } if(jsonValue.ValueExists("Singular")) { m_singular = jsonValue.GetObject("Singular"); m_singularHasBeenSet = true; } if(jsonValue.ValueExists("Slack")) { m_slack = jsonValue.GetObject("Slack"); m_slackHasBeenSet = true; } if(jsonValue.ValueExists("Trendmicro")) { m_trendmicro = jsonValue.GetObject("Trendmicro"); m_trendmicroHasBeenSet = true; } if(jsonValue.ValueExists("Veeva")) { m_veeva = jsonValue.GetObject("Veeva"); m_veevaHasBeenSet = true; } if(jsonValue.ValueExists("Zendesk")) { m_zendesk = jsonValue.GetObject("Zendesk"); m_zendeskHasBeenSet = true; } if(jsonValue.ValueExists("SAPOData")) { m_sAPOData = jsonValue.GetObject("SAPOData"); m_sAPODataHasBeenSet = true; } if(jsonValue.ValueExists("CustomConnector")) { m_customConnector = jsonValue.GetObject("CustomConnector"); m_customConnectorHasBeenSet = true; } if(jsonValue.ValueExists("Pardot")) { m_pardot = jsonValue.GetObject("Pardot"); m_pardotHasBeenSet = true; } return *this; } JsonValue SourceConnectorProperties::Jsonize() const { JsonValue payload; if(m_amplitudeHasBeenSet) { payload.WithObject("Amplitude", m_amplitude.Jsonize()); } if(m_datadogHasBeenSet) { payload.WithObject("Datadog", m_datadog.Jsonize()); } if(m_dynatraceHasBeenSet) { payload.WithObject("Dynatrace", m_dynatrace.Jsonize()); } if(m_googleAnalyticsHasBeenSet) { payload.WithObject("GoogleAnalytics", m_googleAnalytics.Jsonize()); } if(m_inforNexusHasBeenSet) { payload.WithObject("InforNexus", m_inforNexus.Jsonize()); } if(m_marketoHasBeenSet) { payload.WithObject("Marketo", m_marketo.Jsonize()); } if(m_s3HasBeenSet) { payload.WithObject("S3", m_s3.Jsonize()); } if(m_salesforceHasBeenSet) { payload.WithObject("Salesforce", m_salesforce.Jsonize()); } if(m_serviceNowHasBeenSet) { payload.WithObject("ServiceNow", m_serviceNow.Jsonize()); } if(m_singularHasBeenSet) { payload.WithObject("Singular", m_singular.Jsonize()); } if(m_slackHasBeenSet) { payload.WithObject("Slack", m_slack.Jsonize()); } if(m_trendmicroHasBeenSet) { payload.WithObject("Trendmicro", m_trendmicro.Jsonize()); } if(m_veevaHasBeenSet) { payload.WithObject("Veeva", m_veeva.Jsonize()); } if(m_zendeskHasBeenSet) { payload.WithObject("Zendesk", m_zendesk.Jsonize()); } if(m_sAPODataHasBeenSet) { payload.WithObject("SAPOData", m_sAPOData.Jsonize()); } if(m_customConnectorHasBeenSet) { payload.WithObject("CustomConnector", m_customConnector.Jsonize()); } if(m_pardotHasBeenSet) { payload.WithObject("Pardot", m_pardot.Jsonize()); } return payload; } } // namespace Model } // namespace Appflow } // namespace Aws