/** * 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 { DestinationConnectorProperties::DestinationConnectorProperties() : m_redshiftHasBeenSet(false), m_s3HasBeenSet(false), m_salesforceHasBeenSet(false), m_snowflakeHasBeenSet(false), m_eventBridgeHasBeenSet(false), m_lookoutMetricsHasBeenSet(false), m_upsolverHasBeenSet(false), m_honeycodeHasBeenSet(false), m_customerProfilesHasBeenSet(false), m_zendeskHasBeenSet(false), m_marketoHasBeenSet(false), m_customConnectorHasBeenSet(false), m_sAPODataHasBeenSet(false) { } DestinationConnectorProperties::DestinationConnectorProperties(JsonView jsonValue) : m_redshiftHasBeenSet(false), m_s3HasBeenSet(false), m_salesforceHasBeenSet(false), m_snowflakeHasBeenSet(false), m_eventBridgeHasBeenSet(false), m_lookoutMetricsHasBeenSet(false), m_upsolverHasBeenSet(false), m_honeycodeHasBeenSet(false), m_customerProfilesHasBeenSet(false), m_zendeskHasBeenSet(false), m_marketoHasBeenSet(false), m_customConnectorHasBeenSet(false), m_sAPODataHasBeenSet(false) { *this = jsonValue; } DestinationConnectorProperties& DestinationConnectorProperties::operator =(JsonView jsonValue) { if(jsonValue.ValueExists("Redshift")) { m_redshift = jsonValue.GetObject("Redshift"); m_redshiftHasBeenSet = 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("Snowflake")) { m_snowflake = jsonValue.GetObject("Snowflake"); m_snowflakeHasBeenSet = true; } if(jsonValue.ValueExists("EventBridge")) { m_eventBridge = jsonValue.GetObject("EventBridge"); m_eventBridgeHasBeenSet = true; } if(jsonValue.ValueExists("LookoutMetrics")) { m_lookoutMetrics = jsonValue.GetObject("LookoutMetrics"); m_lookoutMetricsHasBeenSet = true; } if(jsonValue.ValueExists("Upsolver")) { m_upsolver = jsonValue.GetObject("Upsolver"); m_upsolverHasBeenSet = true; } if(jsonValue.ValueExists("Honeycode")) { m_honeycode = jsonValue.GetObject("Honeycode"); m_honeycodeHasBeenSet = true; } if(jsonValue.ValueExists("CustomerProfiles")) { m_customerProfiles = jsonValue.GetObject("CustomerProfiles"); m_customerProfilesHasBeenSet = true; } if(jsonValue.ValueExists("Zendesk")) { m_zendesk = jsonValue.GetObject("Zendesk"); m_zendeskHasBeenSet = true; } if(jsonValue.ValueExists("Marketo")) { m_marketo = jsonValue.GetObject("Marketo"); m_marketoHasBeenSet = true; } if(jsonValue.ValueExists("CustomConnector")) { m_customConnector = jsonValue.GetObject("CustomConnector"); m_customConnectorHasBeenSet = true; } if(jsonValue.ValueExists("SAPOData")) { m_sAPOData = jsonValue.GetObject("SAPOData"); m_sAPODataHasBeenSet = true; } return *this; } JsonValue DestinationConnectorProperties::Jsonize() const { JsonValue payload; if(m_redshiftHasBeenSet) { payload.WithObject("Redshift", m_redshift.Jsonize()); } if(m_s3HasBeenSet) { payload.WithObject("S3", m_s3.Jsonize()); } if(m_salesforceHasBeenSet) { payload.WithObject("Salesforce", m_salesforce.Jsonize()); } if(m_snowflakeHasBeenSet) { payload.WithObject("Snowflake", m_snowflake.Jsonize()); } if(m_eventBridgeHasBeenSet) { payload.WithObject("EventBridge", m_eventBridge.Jsonize()); } if(m_lookoutMetricsHasBeenSet) { payload.WithObject("LookoutMetrics", m_lookoutMetrics.Jsonize()); } if(m_upsolverHasBeenSet) { payload.WithObject("Upsolver", m_upsolver.Jsonize()); } if(m_honeycodeHasBeenSet) { payload.WithObject("Honeycode", m_honeycode.Jsonize()); } if(m_customerProfilesHasBeenSet) { payload.WithObject("CustomerProfiles", m_customerProfiles.Jsonize()); } if(m_zendeskHasBeenSet) { payload.WithObject("Zendesk", m_zendesk.Jsonize()); } if(m_marketoHasBeenSet) { payload.WithObject("Marketo", m_marketo.Jsonize()); } if(m_customConnectorHasBeenSet) { payload.WithObject("CustomConnector", m_customConnector.Jsonize()); } if(m_sAPODataHasBeenSet) { payload.WithObject("SAPOData", m_sAPOData.Jsonize()); } return payload; } } // namespace Model } // namespace Appflow } // namespace Aws